aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorNat Lasseter <user@4574.co.uk>2022-06-15 23:22:12 +0100
committerNat Lasseter <user@4574.co.uk>2022-06-15 23:22:12 +0100
commit10970dc2dc5571eb5587415e7bd90bfbf539ffd2 (patch)
tree0b170d807d4266ea5c581249f038b528d30ba8a8
parentf86bbc75fbc1bd85b08e407474585604050d47fc (diff)
Still not even sorry.
-rw-r--r--planed.html4
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;