Skip to content

Commit

Permalink
fixed compatibility issues with jsdom environment
Browse files Browse the repository at this point in the history
  • Loading branch information
heilhead committed Oct 19, 2016
1 parent 0fedb8b commit 86f46a3
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion js/utils/video.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@ export const getUserMedia = (
navigator.getUserMedia ||
navigator.webkitGetUserMedia ||
navigator.mozGetUserMedia ||
navigator.msGetUserMedia
navigator.msGetUserMedia ||
(() => { throw new Error('navigator.getUserMedia() is not supported') })
).bind(navigator);


Expand Down

0 comments on commit 86f46a3

Please sign in to comment.