diff options
author | Nat Lasseter <user@4574.co.uk> | 2022-06-15 23:22:12 +0100 |
---|---|---|
committer | Nat Lasseter <user@4574.co.uk> | 2022-06-15 23:22:12 +0100 |
commit | 10970dc2dc5571eb5587415e7bd90bfbf539ffd2 (patch) | |
tree | 0b170d807d4266ea5c581249f038b528d30ba8a8 | |
parent | f86bbc75fbc1bd85b08e407474585604050d47fc (diff) |
Still not even sorry.
-rw-r--r-- | planed.html | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/planed.html b/planed.html index 55c4c77..dafd2d6 100644 --- a/planed.html +++ b/planed.html @@ -37,8 +37,8 @@ div.msg { let loglen = 0; const logmax = 18; const timemax = 5000; - while (speechSynthesis === undefined) ; - const voices = speechSynthesis.getVoices(); + const voices = []; + setTimeout(() => voices = speechSynthesis.getVoices(), 100); ws.onmessage = function(ev) { loglen += 1; |