diff options
author | Louis Pilfold <louis@lpil.uk> | 2024-01-23 14:07:27 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-01-23 14:07:27 +0000 |
commit | 2e5b4cb878569e56811f4f58facbe7aa60ab7327 (patch) | |
tree | 46e234d14f8092d09e8222f05ec9fdff7e6b62ea /static/worker.js | |
parent | ba9abad7375bb3768f2650fe3d086f65f091a5f4 (diff) | |
download | tour-2e5b4cb878569e56811f4f58facbe7aa60ab7327.tar.gz tour-2e5b4cb878569e56811f4f58facbe7aa60ab7327.zip |
Simplify
Diffstat (limited to 'static/worker.js')
-rw-r--r-- | static/worker.js | 4 |
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({}); |