aboutsummaryrefslogtreecommitdiffstats
path: root/site/wasm.mjs
diff options
context:
space:
mode:
authorbrian cully <bjc@spork.org>2025-12-27 12:58:44 -0500
committerbrian cully <bjc@spork.org>2025-12-27 12:58:44 -0500
commit69591cc5483d36bc819c75dce9347b08b04e33bf (patch)
tree93d0f158621c6caea2f54e449a942f45ec829395 /site/wasm.mjs
parent0eaa19448a85473e85d4679faa4ab30108dbf4b5 (diff)
downloadpolyring-69591cc5483d36bc819c75dce9347b08b04e33bf.tar.gz
polyring-69591cc5483d36bc819c75dce9347b08b04e33bf.zip
add rust/wasm impl
Diffstat (limited to 'site/wasm.mjs')
-rw-r--r--site/wasm.mjs7
1 files changed, 7 insertions, 0 deletions
diff --git a/site/wasm.mjs b/site/wasm.mjs
new file mode 100644
index 0000000..29a2741
--- /dev/null
+++ b/site/wasm.mjs
@@ -0,0 +1,7 @@
+import init from './wasm/polyring.js';
+
+async function loaded() {
+ await init();
+}
+
+document.addEventListener('DOMContentLoaded', loaded);