summaryrefslogtreecommitdiffstats
path: root/g4f/gui
diff options
context:
space:
mode:
authorH Lohaus <hlohaus@users.noreply.github.com>2024-04-11 04:16:31 +0200
committerGitHub <noreply@github.com>2024-04-11 04:16:31 +0200
commit5899543ecf04d777dcc152d195f607466018391a (patch)
tree7b83092b63a1f0d974a37491ab68e17cc74e58a0 /g4f/gui
parentUpdate chat.v1.js (diff)
downloadgpt4free-5899543ecf04d777dcc152d195f607466018391a.tar
gpt4free-5899543ecf04d777dcc152d195f607466018391a.tar.gz
gpt4free-5899543ecf04d777dcc152d195f607466018391a.tar.bz2
gpt4free-5899543ecf04d777dcc152d195f607466018391a.tar.lz
gpt4free-5899543ecf04d777dcc152d195f607466018391a.tar.xz
gpt4free-5899543ecf04d777dcc152d195f607466018391a.tar.zst
gpt4free-5899543ecf04d777dcc152d195f607466018391a.zip
Diffstat (limited to 'g4f/gui')
-rw-r--r--g4f/gui/client/static/js/chat.v1.js3
1 files changed, 2 insertions, 1 deletions
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");