diff options
author | Daniel Sherlock <d.t.sherlock@live.co.uk> | 2024-01-22 15:45:22 +0000 |
---|---|---|
committer | Louis Pilfold <louis@lpil.uk> | 2024-01-23 14:03:14 +0000 |
commit | ba9abad7375bb3768f2650fe3d086f65f091a5f4 (patch) | |
tree | 10236429a4fbae42895f8294652b4ad95b70b3d8 /static/worker.js | |
parent | 2935d24405836ad81d6170bc1c76b6ef972e34d1 (diff) | |
download | tour-ba9abad7375bb3768f2650fe3d086f65f091a5f4.tar.gz tour-ba9abad7375bb3768f2650fe3d086f65f091a5f4.zip |
Fix race condition in webworker logic (hopefully)
Diffstat (limited to 'static/worker.js')
-rw-r--r-- | static/worker.js | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/static/worker.js b/static/worker.js index 9b975db..c437532 100644 --- a/static/worker.js +++ b/static/worker.js @@ -65,3 +65,5 @@ self.onmessage = async (event) => { const result = compileEval(event.data); postMessage(await result); }; + +postMessage({initialReadyMessage: true}); |