(example) (web) cleanup js_wasm example HTML when building for wasm
This commit is contained in:
1 parent
1268970ba7
commit
c78cd45b8a
1 file changed
+1
-1
@@ -23,7 +23,7 @@
|
||||
} catch(err) {
|
||||
console.error(err);
|
||||
}
|
||||
const dartModulePromise = WebAssembly.compileStreaming(fetch('example.wasm'));
|
||||
const dartModulePromise = WebAssembly.compileStreaming(fetch('./example.wasm'));
|
||||
const imports = {};
|
||||
const dart2wasm_runtime = await import('./example.mjs');
|
||||
const moduleInstance = await dart2wasm_runtime.instantiate(dartModulePromise, imports);
|
||||
|
||||
Reference in new issue
Block a user