From 8f1e848dfea2dead7c82ac6b5d0348ceea288a5c Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=B3=95=E8=98=AD=E6=96=AF?= <34397289+fustyles@users.noreply.github.com> Date: Mon, 5 Aug 2019 05:22:28 +0800 Subject: [PATCH] Update ESP32_SpeechRecognition.html --- ESP32_SpeechRecognition.html | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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, '