From d8a1c20b21c1189351aa1bc3cd268833c7082f26 Mon Sep 17 00:00:00 2001 From: Naiel <109038805+naielv@users.noreply.github.com> Date: Thu, 5 Jun 2025 12:05:00 +0200 Subject: [PATCH] update --- index.html | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/index.html b/index.html index 5cf6156..74f2132 100644 --- a/index.html +++ b/index.html @@ -2317,10 +2317,11 @@ if (old[key] == undefined) { old[key] = ""; } - if (old[key] != data.Estado && document.getElementById(tts_check).checked) { + if (old[key] != data.Estado) { console.log("SC:Updated:", data) - if (tts) { + if (tts && document.getElementById(tts_check).checked) { var msg = `Comanda de ${SC_Personas[data.Persona].Region}. ${SC_Personas[data.Persona].Nombre}. ${data.Estado}` + console.log("TTS: " + msg) let utterance = new SpeechSynthesisUtterance(msg); utterance.rate = 0.9 utterance.voice = speechSynthesis.getVoices()[7]