diff --git a/README.md b/README.md index 3c5c196..f785ee4 100644 --- a/README.md +++ b/README.md @@ -25,7 +25,7 @@ new Screenshot({success: img => { ### optional argurments * `noSupport` - callback for unsupport browser. -* `noPremit` - callback that would run if the user did not confirm the screen share. +* `noPermit` - callback that would run if the user did not confirm the screen share. * `sound` - play sound when taking screenshot. * `true` - default sound * `url` - custom sound (example: `'https://site.my/sound.mp3'`) diff --git a/index.html b/index.html index 72ddacb..aac6c3f 100644 --- a/index.html +++ b/index.html @@ -30,7 +30,7 @@

Screenshots:

success: img => { document.getElementById('screenshots').append(img); }, - noPremit: () => { + noPermit: () => { alert('Please Allow!'); }, noSupport: () => { diff --git a/screenshot.js b/screenshot.js index 417a26a..2bc2c72 100644 --- a/screenshot.js +++ b/screenshot.js @@ -30,8 +30,8 @@ class Screenshot { }) .catch((e) => { //console.log('You need to allow screen share'); - if (typeof this.args.noPremit == 'function'){ - this.args.noPremit(); + if (typeof this.args.noPermit == 'function'){ + this.args.noPermit(); } }); }