Skip to content

Commit

Permalink
fix: 未定義変数のチェック誤り (#5)
Browse files Browse the repository at this point in the history
  • Loading branch information
book000 committed Jun 29, 2024
1 parent e7e13b8 commit 0966e13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ function start_recognition(recognitionId) {
document.getElementById("startstop").innerHTML = "Stop recording";
const SpeechRecognition = webkitSpeechRecognition || SpeechRecognition;
const recognition = new SpeechRecognition();
if (!listening) {
if (typeof listening === "undefined") {
listening = new Listening(recognitionId);
}
recognition.continuous = true;
Expand Down

0 comments on commit 0966e13

Please sign in to comment.