aboutsummaryrefslogtreecommitdiff
path: root/static/worker.js
diff options
context:
space:
mode:
authorLouis Pilfold <louis@lpil.uk>2024-01-23 14:07:27 +0000
committerLouis Pilfold <louis@lpil.uk>2024-01-23 14:07:27 +0000
commit2e5b4cb878569e56811f4f58facbe7aa60ab7327 (patch)
tree46e234d14f8092d09e8222f05ec9fdff7e6b62ea /static/worker.js
parentba9abad7375bb3768f2650fe3d086f65f091a5f4 (diff)
downloadtour-2e5b4cb878569e56811f4f58facbe7aa60ab7327.tar.gz
tour-2e5b4cb878569e56811f4f58facbe7aa60ab7327.zip
Simplify
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({});