Skip to content

Commit

Permalink
Update main.js
Browse files Browse the repository at this point in the history
Fixed method to check support 'MediaStreamTrack' on Firefox >= Version 34.
  • Loading branch information
ReneG2 committed Jan 13, 2015
1 parent 56bf340 commit 7ab3639
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion getusermedia/sources/js/main.js
Expand Up @@ -24,7 +24,7 @@ function gotSources(sourceInfos) {
}
}

if (typeof MediaStreamTrack === 'undefined'){
if (typeof MediaStreamTrack.getSources === 'undefined'){
alert('This browser does not support MediaStreamTrack.\n\nTry Chrome Canary.');
} else {
MediaStreamTrack.getSources(gotSources);
Expand Down

0 comments on commit 7ab3639

Please sign in to comment.