Browse Source

Check for ClipboardItem access

master
Fen Dweller 5 years ago
parent
commit
c6c09a1afc
1 changed files with 4 additions and 0 deletions
  1. +4
    -0
      macrovision.js

+ 4
- 0
macrovision.js View File

@@ -3653,6 +3653,10 @@ function generateScreenshot(callback) {
}

function copyScreenshot() {
if (window.ClipboardItem === undefined) {
alert("Sorry, this browser doesn't yet support writing images to the clipboard.");
return;
}
generateScreenshot(blob => {
navigator.clipboard.write([
new ClipboardItem({


Loading…
Cancel
Save