Fixed typo in decodeB64StringToArrayBuffer

This commit is contained in:
Andrew Bastin
2020-07-14 14:12:00 -04:00
parent 3731da5df5
commit ddb0d6540e

View File

@@ -1,5 +1,5 @@
export const decodeB64StringToArrayBuffer = (input) => {
const bytes = Math.floor((input / 4) * 3)
const bytes = Math.floor((input.length / 4) * 3)
const ab = new ArrayBuffer(bytes)
const uarray = new Uint8Array(ab)