Skip to content

Commit 70c797b

Browse files
committed
actually unbreak zlib wasm loading this time :)
1 parent 9071210 commit 70c797b

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

‎utils/wasm/zlib.js‎

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
let wasm;
22

33
{
4-
const module = new WebAssembly.Module(await Deno.readFile(import.meta.url.replace(/js$/, 'wasm')));
4+
console.log(import.meta);
5+
const module = new WebAssembly.Module(await fetch('https://github.com/matmen/ImageScript/raw/deno/utils/wasm/zlib.wasm').then(r => r.arrayBuffer()));
56
const instance = new WebAssembly.Instance(module);
67

78
wasm = instance.exports;

0 commit comments

Comments
 (0)