From 9199713548a8d94831d14c1872f3a62c355d5e92 Mon Sep 17 00:00:00 2001 From: "(quasar) nebula" Date: Mon, 13 May 2024 16:28:18 -0300 Subject: client: general search-worker eslint cleanup --- src/static/js/search-worker.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src') 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 { -- cgit 1.3.0-6-gf8a5