aboutsummaryrefslogtreecommitdiff
path: root/planed.html
diff options
context:
space:
mode:
Diffstat (limited to 'planed.html')
-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;