aboutsummaryrefslogtreecommitdiff
path: root/static/js/elasticlunr_scope_begin.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/js/elasticlunr_scope_begin.js')
-rw-r--r--static/js/elasticlunr_scope_begin.js3
1 files changed, 3 insertions, 0 deletions
diff --git a/static/js/elasticlunr_scope_begin.js b/static/js/elasticlunr_scope_begin.js
new file mode 100644
index 0000000..cb58eee
--- /dev/null
+++ b/static/js/elasticlunr_scope_begin.js
@@ -0,0 +1,3 @@
+// Opens an IIFE so elasticlunr + search stay off the real window object.
+// (Top-level `var` in a classic script becomes a non-deletable window property.)
+(function () {