We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c2b207d commit 013cb7fCopy full SHA for 013cb7f
src/utils/file/base64Conver.ts
@@ -5,7 +5,7 @@ export function dataURLtoBlob(base64Buf: string): Blob {
5
const arr = base64Buf.split(',');
6
const typeItem = arr[0];
7
const mime = typeItem.match(/:(.*?);/)![1];
8
- const bstr = atob(arr[1]);
+ const bstr = window.atob(arr[1]);
9
let n = bstr.length;
10
const u8arr = new Uint8Array(n);
11
while (n--) {
0 commit comments