summaryrefslogtreecommitdiff
path: root/webhogg/wasm/pkg/main.js
diff options
context:
space:
mode:
Diffstat (limited to 'webhogg/wasm/pkg/main.js')
-rw-r--r--webhogg/wasm/pkg/main.js9
1 files changed, 9 insertions, 0 deletions
diff --git a/webhogg/wasm/pkg/main.js b/webhogg/wasm/pkg/main.js
new file mode 100644
index 0000000..eec740d
--- /dev/null
+++ b/webhogg/wasm/pkg/main.js
@@ -0,0 +1,9 @@
+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();