diff --git a/ESP32_SpeechRecognition.html b/ESP32_SpeechRecognition.html index 20f2f1a32c..b9d3225986 100644 --- a/ESP32_SpeechRecognition.html +++ b/ESP32_SpeechRecognition.html @@ -187,7 +187,8 @@ if (Recognition_final.toLowerCase().trim()=="ok"||Recognition_final.toLowerCase().trim()=="okay") { document.getElementById("showText").innerHTML = ""; document.getElementById("result").innerHTML = ""; - location.href = document.getElementById("command").innerHTML; + location.href = document.getElementById("command").innerHTML; + return; } else { document.getElementById("showText").innerHTML = ""; @@ -205,12 +206,15 @@ } }; } + function linebreak(s) { return s.replace(two_line, '
').replace(one_line, '