diff options
author | natrixaeria <janng@gmx.de> | 2019-05-22 20:20:16 +0200 |
---|---|---|
committer | natrixaeria <janng@gmx.de> | 2019-05-22 20:20:16 +0200 |
commit | e724788ce9345f6fb049d4de447657861ac46f69 (patch) | |
tree | 26d836330e434bd07fa7574087ed7a5494160e26 /WebInterface/wasm/asm-paint/index.html | |
parent | c3ae4cba3a1577c1ca7f86e4acd6778c6f74ffc3 (diff) |
Load the wasm
Diffstat (limited to 'WebInterface/wasm/asm-paint/index.html')
-rw-r--r-- | WebInterface/wasm/asm-paint/index.html | 12 |
1 files changed, 4 insertions, 8 deletions
diff --git a/WebInterface/wasm/asm-paint/index.html b/WebInterface/wasm/asm-paint/index.html index 424255b..a0264cf 100644 --- a/WebInterface/wasm/asm-paint/index.html +++ b/WebInterface/wasm/asm-paint/index.html @@ -1,14 +1,10 @@ <!doctype html> <html> - <header> + <head> + <meta charset="UTF-8"> <title> Scribblio </title> - <script> -var importObject = { imports: { imported_func: arg => console.log(arg) } }; - -WebAssembly.instantiateStreaming(fetch('pkg/asm_paint_bg.wasm'), importObject) -.then(obj => obj.instance.exports.exported_func()); - </script> - </header> + <script src='loader.js'></script> + </head> <body> </body> </html> |