From 4eef5e339dac164be706b5366521c7eb6e808343 Mon Sep 17 00:00:00 2001 From: fustyles <34397289+fustyles@users.noreply.github.com> Date: Mon, 9 Oct 2023 15:57:19 +0800 Subject: [PATCH] Update speechrecognition.js --- .../SpeechRecognition_20220729/speechrecognition.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/SpBlocklyJS/SpeechRecognition_20220729/speechrecognition.js b/SpBlocklyJS/SpeechRecognition_20220729/speechrecognition.js index 7535dbaa86..c25005b528 100644 --- a/SpBlocklyJS/SpeechRecognition_20220729/speechrecognition.js +++ b/SpBlocklyJS/SpeechRecognition_20220729/speechrecognition.js @@ -64,10 +64,10 @@ if ('webkitSpeechRecognition' in window) { else { Recognition_final = ""; document.getElementById("gamespan_recognition").innerHTML = Recognition_interim; - if (SpeechRecognition_interim.tagName.toLowerCase()=="input"||SpeechRecognition_interim.tagName.toLowerCase()=="textarea") - SpeechRecognition_interim.value = Recognition_interim; - else - SpeechRecognition_interim.innerHTML = Recognition_interim; + if (SpeechRecognition_interim.tagName.toLowerCase()=="input"||SpeechRecognition_interim.tagName.toLowerCase()=="textarea") + SpeechRecognition_interim.value = Recognition_interim; + else + SpeechRecognition_interim.innerHTML = Recognition_interim; } }; }