From c15242faa02847bc9cdcdd46a12611a73c2bba57 Mon Sep 17 00:00:00 2001 From: Heiner Lohaus Date: Sat, 13 Apr 2024 21:05:01 +0200 Subject: Fix SpeechRecognition on Phone --- g4f/gui/client/static/js/chat.v1.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'g4f/gui/client/static/js/chat.v1.js') diff --git a/g4f/gui/client/static/js/chat.v1.js b/g4f/gui/client/static/js/chat.v1.js index e4af281d..5784b05a 100644 --- a/g4f/gui/client/static/js/chat.v1.js +++ b/g4f/gui/client/static/js/chat.v1.js @@ -1264,8 +1264,8 @@ if (SpeechRecognition) { let shouldStop = false; function may_stop() { if (microLabel.classList.contains("recognition")) { - recognition.stop(); shouldStop = true + recognition.stop(); } } -- cgit v1.2.3