Skip to content

Commit

Permalink
rebuild
Browse files Browse the repository at this point in the history
  • Loading branch information
Xander Dumaine committed Jan 19, 2017
1 parent c0359e2 commit 60396b6
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions getscreenmedia.bundle.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ module.exports = function (constraints, cb) {
function (data) {
if (!data || data.sourceId === '') { // user canceled
var error = new Error('NavigatorUserMediaError');
error.name = 'PERMISSION_DENIED';
error.name = 'NotAllowedError';
callback(error);
} else {
constraints = (hasConstraints && constraints) || {audio: false, video: {
Expand Down Expand Up @@ -143,7 +143,7 @@ typeof window !== 'undefined' && window.addEventListener('message', function (ev

if (event.data.sourceId === '') { // user canceled
var error = new Error('NavigatorUserMediaError');
error.name = 'PERMISSION_DENIED';
error.name = 'NotAllowedError';
callback(error);
} else {
constraints = constraints || {audio: false, video: {
Expand Down

0 comments on commit 60396b6

Please sign in to comment.