Skip to content

Commit 47f74fd

Browse files
authored
simplify stop handler
1 parent 7a0e341 commit 47f74fd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

examples/static/microphone-streaming.html

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ <h2>Code for this demo:</h2>
3838
console.log(err);
3939
});
4040

41-
document.querySelector('#stop').onclick = stream.stop.bind(stream);
41+
document.querySelector('#stop').onclick = function() {
42+
stream.stop();
43+
};
4244

4345
}).catch(function(error) {
4446
console.log(error);

0 commit comments

Comments
 (0)