From 10970dc2dc5571eb5587415e7bd90bfbf539ffd2 Mon Sep 17 00:00:00 2001 From: Nat Lasseter Date: Wed, 15 Jun 2022 23:22:12 +0100 Subject: Still not even sorry. --- planed.html | 4 ++-- 1 file 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; -- cgit v1.2.1