Skip to content

Commit

Permalink
fix: nextjs complain about crypto need arraybuffer
Browse files Browse the repository at this point in the history
  • Loading branch information
invisal committed Mar 20, 2024
1 parent 3587b01 commit 0782660
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/encryption-edge.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ function base64ToArrayBuffer(base64: string) {
for (let i = 0; i < binaryString.length; i++) {
bytes[i] = binaryString.charCodeAt(i);
}
return bytes.buffer;
return bytes;
}

function arrayBufferToBase64(buffer: Uint8Array) {
Expand Down

0 comments on commit 0782660

Please sign in to comment.