aboutsummaryrefslogtreecommitdiffstats
path: root/site/pure.mjs
diff options
context:
space:
mode:
authorbrian cully <bjc@spork.org>2025-12-27 14:33:52 -0500
committerbrian cully <bjc@spork.org>2025-12-27 14:33:52 -0500
commitc182d8179ddd382543b7e56f46e78bf6a6724b2a (patch)
tree0bc2f2e45ec99711110b4d6b463e472312c6224c /site/pure.mjs
parentb35fd970e93a5bb4290134f842ac4f7e00a177b2 (diff)
downloadpolyring-c182d8179ddd382543b7e56f46e78bf6a6724b2a.tar.gz
polyring-c182d8179ddd382543b7e56f46e78bf6a6724b2a.zip
dispatch wasm/pure based on query part of url
Diffstat (limited to 'site/pure.mjs')
-rw-r--r--site/pure.mjs4
1 files changed, 1 insertions, 3 deletions
diff --git a/site/pure.mjs b/site/pure.mjs
index 336b876..6a4447c 100644
--- a/site/pure.mjs
+++ b/site/pure.mjs
@@ -201,7 +201,7 @@ function bouncePoints(points) {
return didBounce;
}
-async function loaded() {
+export default async function () {
const canvas = document.querySelector('canvas');
const ctx = canvas.getContext('2d');
console.debug('canvas:', canvas, 'ctx', ctx);
@@ -258,5 +258,3 @@ async function loaded() {
//goButton.onclick({ target: goButton });
render(document.timeline.currentTime);
}
-
-document.addEventListener('DOMContentLoaded', loaded);