aboutsummaryrefslogtreecommitdiff
path: root/static/worker.js
diff options
context:
space:
mode:
Diffstat (limited to 'static/worker.js')
-rw-r--r--static/worker.js4
1 files changed, 3 insertions, 1 deletions
diff --git a/static/worker.js b/static/worker.js
index c437532..a3c4a51 100644
--- a/static/worker.js
+++ b/static/worker.js
@@ -66,4 +66,6 @@ self.onmessage = async (event) => {
postMessage(await result);
};
-postMessage({initialReadyMessage: true});
+// Send an initial message to the main thread to indicate that the worker is
+// ready to receive messages.
+postMessage({});