Skip to content

Commit

Permalink
Update src/utils.ts
Browse files Browse the repository at this point in the history
  • Loading branch information
stryaponoff authored Apr 15, 2024
1 parent f18448e commit fb4aed2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ export function rmDir(path: string) {
}

export function base64ToArrayBuffer(base64: string) {
const binaryString = atob(base64);
const binaryString = Buffer.from(base64, 'base64').toString('binary');
const bytes = new Uint8Array(binaryString.length);
for (let i = 0; i < binaryString.length; i++) {
bytes[i] = binaryString.charCodeAt(i);
Expand Down

0 comments on commit fb4aed2

Please sign in to comment.