diff options
Diffstat (limited to 'src/static')
-rw-r--r-- | src/static/js/search-worker.js | 8 |
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 { |