« get me outta code hell

client: general search-worker eslint cleanup - hsmusic-wiki - HSMusic - static wiki software cataloguing collaborative creation
about summary refs log tree commit diff
path: root/src/static/js/search-worker.js
diff options
context:
space:
mode:
author(quasar) nebula <qznebula@protonmail.com>2024-05-13 16:28:18 -0300
committer(quasar) nebula <qznebula@protonmail.com>2024-05-31 12:11:54 -0300
commit9199713548a8d94831d14c1872f3a62c355d5e92 (patch)
tree2766c3ce2d451dcf7603b10da998db5f682e1eff /src/static/js/search-worker.js
parentf3cb47c4629744e66734e7ce6943dfe372051d32 (diff)
client: general search-worker eslint cleanup
Diffstat (limited to 'src/static/js/search-worker.js')
-rw-r--r--src/static/js/search-worker.js8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/static/js/search-worker.js b/src/static/js/search-worker.js
index b8ab4a63..47d6711b 100644
--- a/src/static/js/search-worker.js
+++ b/src/static/js/search-worker.js
@@ -13,7 +13,7 @@ let unpack;
 let status = null;
 let indexes = null;
 
-onmessage = handleWindowMessage;
+globalThis.onmessage = handleWindowMessage;
 postStatus('alive');
 
 loadDependencies()
@@ -116,14 +116,14 @@ async function handleWindowActionMessage(message) {
 
 function postStatus(newStatus) {
   status = newStatus;
-  postMessage({
+  globalThis.postMessage({
     kind: 'status',
     status: newStatus,
   });
 }
 
 function postActionResult(id, status, value) {
-  postMessage({
+  globalThis.postMessage({
     kind: 'result',
     id,
     status,
@@ -274,7 +274,7 @@ function permutations(array) {
   }
 }
 
-function queryBoilerplate(index, query, options) {
+function queryBoilerplate(index) {
   const idToDoc = {};
 
   return {