diff options
Diffstat (limited to 'webhogg/wasm/pkg/main.js')
-rw-r--r-- | webhogg/wasm/pkg/main.js | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/webhogg/wasm/pkg/main.js b/webhogg/wasm/pkg/main.js index f80fabb..eec740d 100644 --- a/webhogg/wasm/pkg/main.js +++ b/webhogg/wasm/pkg/main.js @@ -1 +1,9 @@ -let data = fetch('bin/webhogg-wasm_bg.wasm'); +async function main() { + let fetchingSource = fetch('bin/webhogg-wasm.wasm'); + let fetchedSource = await fetchingSource; + let source = await fetchedSource.text(); + //alert(source) + let workerGraphics = new Worker('pkg/worker-graphics.js'); +} + +main(); |