diff options
author | natrixaeria <janng@gmx.de> | 2019-06-11 23:40:24 +0200 |
---|---|---|
committer | natrixaeria <janng@gmx.de> | 2019-06-11 23:40:24 +0200 |
commit | 286be2a2fe89927c1a7bb6855b3d001a70dd312d (patch) | |
tree | 49bb7265e49b75b6602db43c4c15dfb7f0513e52 /webhogg/wasm/pkg/main.js | |
parent | 0876527eafcd7c372873314cc9c7e93cba2991e2 (diff) |
Add workers
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(); |