Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
hy16657 committed Nov 25, 2022
1 parent eaae928 commit fb77621
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/utils.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
export function base64ArrayBuffer(arrayBuffer) {
let base64 = ''
const encodings = 'ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/'
const bytes = new Uint8Array(arrayBuffer)
const byteLength = bytes.byteLength
const byteRemainder = byteLength % 3
const mainLength = byteLength - byteRemainder


let base64 = ''
let a, b, c, d
let chunk

Expand Down

0 comments on commit fb77621

Please sign in to comment.