From 5899543ecf04d777dcc152d195f607466018391a Mon Sep 17 00:00:00 2001 From: H Lohaus Date: Thu, 11 Apr 2024 04:16:31 +0200 Subject: Update chat.v1.js --- g4f/gui/client/static/js/chat.v1.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/g4f/gui/client/static/js/chat.v1.js b/g4f/gui/client/static/js/chat.v1.js index 5eac4e77..5a16ac7d 100644 --- a/g4f/gui/client/static/js/chat.v1.js +++ b/g4f/gui/client/static/js/chat.v1.js @@ -1249,7 +1249,8 @@ function save_storage() { } } -if (window.SpeechRecognition) { +const SpeechRecognition = window.SpeechRecognition || window.webkitSpeechRecognition; +if (SpeechRecognition) { const mircoIcon = microLabel.querySelector("i"); mircoIcon.classList.add("fa-microphone"); mircoIcon.classList.remove("fa-microphone-slash"); -- cgit v1.2.3