Skip to content

Commit

Permalink
Remove debugging code accidentally added in #1416
Browse files Browse the repository at this point in the history
  • Loading branch information
alexcrichton committed Apr 8, 2019
1 parent 16745ed commit b6d041e
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions examples/without-a-bundler/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -25,12 +25,7 @@
// Also note that the promise, when resolved, yields the wasm module's
// exports which is the same as importing the `*_bg` module in other
// modes
// await init('./pkg/without_a_bundler_bg.wasm');

const url = await fetch('http://localhost:8001/pkg/without_a_bundler_bg.wasm');
const body = await url.arrayBuffer();
const module = await WebAssembly.compile(body);
await init(module);
await init('./pkg/without_a_bundler_bg.wasm');

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

0 comments on commit b6d041e

Please sign in to comment.