diff options
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({}); |