Skip to content

Commit

Permalink
Update speechrecognition.js
Browse files Browse the repository at this point in the history
  • Loading branch information
fustyles authored Oct 9, 2023
1 parent 741e838 commit 4eef5e3
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions SpBlocklyJS/SpeechRecognition_20220729/speechrecognition.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,10 +64,10 @@ if ('webkitSpeechRecognition' in window) {
else {
Recognition_final = "";
document.getElementById("gamespan_recognition").innerHTML = Recognition_interim;
if (SpeechRecognition_interim.tagName.toLowerCase()=="input"||SpeechRecognition_interim.tagName.toLowerCase()=="textarea")
SpeechRecognition_interim.value = Recognition_interim;
else
SpeechRecognition_interim.innerHTML = Recognition_interim;
if (SpeechRecognition_interim.tagName.toLowerCase()=="input"||SpeechRecognition_interim.tagName.toLowerCase()=="textarea")
SpeechRecognition_interim.value = Recognition_interim;
else
SpeechRecognition_interim.innerHTML = Recognition_interim;
}
};
}
Expand Down

0 comments on commit 4eef5e3

Please sign in to comment.