summaryrefslogtreecommitdiff
path: root/WebInterface/wasm/webhogg/graphics.js
diff options
context:
space:
mode:
authornatrixaeria <janng@gmx.de>2019-05-31 14:33:57 +0200
committernatrixaeria <janng@gmx.de>2019-05-31 14:33:57 +0200
commita8908cac9524fabdcf4232c1394a51848f0335af (patch)
tree965cef267f4d0f08d9971d6e0ba1987dfd7f5ee0 /WebInterface/wasm/webhogg/graphics.js
parentb5ec9c693f3abfe36d6d1e4dbf86e084872a4676 (diff)
Create web workers
Diffstat (limited to 'WebInterface/wasm/webhogg/graphics.js')
-rw-r--r--WebInterface/wasm/webhogg/graphics.js6
1 files changed, 6 insertions, 0 deletions
diff --git a/WebInterface/wasm/webhogg/graphics.js b/WebInterface/wasm/webhogg/graphics.js
new file mode 100644
index 0000000..f3bab19
--- /dev/null
+++ b/WebInterface/wasm/webhogg/graphics.js
@@ -0,0 +1,6 @@
+import {default as init_r} from './webhogg.js'
+import {init_x} from './webhogg.js'
+
+let module = init_r('./pkg/webhogg_bg.wasm');
+
+init_x(module, 'graphics', null);