aboutsummaryrefslogtreecommitdiff
path: root/static/js/elasticlunr_scope_begin.js
diff options
context:
space:
mode:
authorJieiku2026-08-15 11:29:36 -0700
committerJieiku2026-08-15 11:29:36 -0700
commit9ebaff82f0bbdb3409eb9910a4353a8a66422ff1 (patch)
tree3df37f3c6904291d6811e6daf4e4d3ffcecfeeb5 /static/js/elasticlunr_scope_begin.js
parentb6e10040f5e8fffe10ec0a01a12196d56337707f (diff)
downloadabridge-9ebaff82f0bbdb3409eb9910a4353a8a66422ff1.tar.gz
abridge-9ebaff82f0bbdb3409eb9910a4353a8a66422ff1.tar.bz2
abridge-9ebaff82f0bbdb3409eb9910a4353a8a66422ff1.zip
Update for Elasticlunr
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 () {