summaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--view.tmpl5
1 files changed, 4 insertions, 1 deletions
diff --git a/view.tmpl b/view.tmpl
index 647b718..d096db0 100644
--- a/view.tmpl
+++ b/view.tmpl
@@ -21,5 +21,8 @@
<input type="range" id="timeline">
</div>
</div>
-<script type="module" src="/derelict.js"></script>
+<script type="module">
+import { init } from '/derelict.js'
+init({id: "{{.Id}}", container: document.getElementById('container'), toolbar: document.getElementById('toolbar')})
+</script>
{{end}}