summaryrefslogtreecommitdiff
path: root/crates/wipfel/www/loader.js
diff options
context:
space:
mode:
Diffstat (limited to 'crates/wipfel/www/loader.js')
-rw-r--r--crates/wipfel/www/loader.js4
1 files changed, 4 insertions, 0 deletions
diff --git a/crates/wipfel/www/loader.js b/crates/wipfel/www/loader.js
new file mode 100644
index 0000000..8880478
--- /dev/null
+++ b/crates/wipfel/www/loader.js
@@ -0,0 +1,4 @@
+// External loader so the page needs no inline <script>, keeping
+// `script-src 'self'` in the Content-Security-Policy sufficient.
+import init from './wipfel.js';
+init();