Skip to content

Commit 1ae18ba

Browse files
committed
Update ron2.js
1 parent ef33872 commit 1ae18ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

ron2.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ function listen() {
1515
isListening = false;
1616
document.getElementById('talkBtn').value = "Talk to Ron!"; //change button text
1717
document.getElementById("ronImg").src = "ron.png"; //default state
18+
recognition.abort() //no more listening
1819
}
1920
}
2021

@@ -62,5 +63,5 @@ function help() {
6263
}
6364

6465
function about() {
65-
alert("My Talking Ron v0.0.5\n\nProgrammed and designed by John Spahr\ngithub.com/johnspahr\n\nMade with <3 and vanilla JS!");
66+
alert("My Talking Ron v0.0.6\n\nProgrammed and designed by John Spahr\ngithub.com/johnspahr\n\nMade with <3 and vanilla JS!");
6667
}

0 commit comments

Comments
 (0)