Skip to content

Commit b6d041e

Browse files
committed
Remove debugging code accidentally added in #1416
1 parent 16745ed commit b6d041e

File tree

1 file changed

+1
-6
lines changed

1 file changed

+1
-6
lines changed

examples/without-a-bundler/index.html

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -25,12 +25,7 @@
2525
// Also note that the promise, when resolved, yields the wasm module's
2626
// exports which is the same as importing the `*_bg` module in other
2727
// modes
28-
// await init('./pkg/without_a_bundler_bg.wasm');
29-
30-
const url = await fetch('http://localhost:8001/pkg/without_a_bundler_bg.wasm');
31-
const body = await url.arrayBuffer();
32-
const module = await WebAssembly.compile(body);
33-
await init(module);
28+
await init('./pkg/without_a_bundler_bg.wasm');
3429

3530
// And afterwards we can use all the functionality defined in wasm.
3631
const result = add(1, 2);

0 commit comments

Comments
 (0)