summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorSam Nystrom <sam@samnystrom.dev>2024-03-16 22:54:16 -0400
committerSam Nystrom <sam@samnystrom.dev>2024-03-16 22:54:16 -0400
commit7c37715afd7d9572a7f1a79552a187ab2a3e4184 (patch)
tree315cac4da4f63c1583d08b368d657ff962e95d73 /src
parentf64fa3b82638c8b4ec72b2e09a6341a44745ff46 (diff)
fix: import wasm module with absolute path
Diffstat (limited to 'src')
-rw-r--r--src/wasm.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wasm.ts b/src/wasm.ts
index 4a8d3c8..cf819da 100644
--- a/src/wasm.ts
+++ b/src/wasm.ts
@@ -7,4 +7,4 @@ export const {
intersperse,
unzip,
fft,
-} = await instantiate(await WebAssembly.compileStreaming(fetch(module)), { env: {} }); \ No newline at end of file
+} = await instantiate(await WebAssembly.compileStreaming(fetch('/' + module)), { env: {} }); \ No newline at end of file