Skip to content

Commit a8f6b47

Browse files
authored
Merge pull request #18 from kumail-raza/kumailraza/fixes
fix issue #16, navigator.getUserMedia is not working
2 parents cc16b5f + caf5392 commit a8f6b47

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

main.js

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,10 +42,7 @@ window.onload = function() {
4242
// Attempt to get audio input
4343
try {
4444
// monkeypatch getUserMedia
45-
navigator.getUserMedia =
46-
navigator.getUserMedia ||
47-
navigator.webkitGetUserMedia ||
48-
navigator.mozGetUserMedia;
45+
navigator.getUserMedia = navigator.mediaDevices.getUserMedia;
4946

5047
// ask for an audio input
5148
navigator.getUserMedia(

0 commit comments

Comments
 (0)