Update chat.v1.js

This commit is contained in:
H Lohaus 2024-04-11 04:16:31 +02:00 committed by GitHub
parent eefbdb6d84
commit 5899543ecf
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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");