diff options
author | H Lohaus <hlohaus@users.noreply.github.com> | 2024-04-11 04:16:31 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-04-11 04:16:31 +0200 |
commit | 5899543ecf04d777dcc152d195f607466018391a (patch) | |
tree | 7b83092b63a1f0d974a37491ab68e17cc74e58a0 /g4f/gui/client/static/js/chat.v1.js | |
parent | Update chat.v1.js (diff) | |
download | gpt4free-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/client/static/js/chat.v1.js')
-rw-r--r-- | g4f/gui/client/static/js/chat.v1.js | 3 |
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"); |