Skip to content

Commit d04a0d5

Browse files
committed
No fromBase64 in Chrome yet
1 parent 376fda3 commit d04a0d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/js-executor/execute-es-module.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ export async function executeWasmCodeWithStdlib(container, jsCode, wasmCode) {
1212
}
1313

1414
function execute(container, jsCode, wasmCode) {
15-
container.wasmCode = Uint8Array.fromBase64(wasmCode);
15+
container.wasmCode = Uint8Array.from(atob(wasmCode), c => c.charCodeAt(0));
1616
return executeJs(container, jsCode);
1717
}
1818

0 commit comments

Comments
 (0)