Ver código fonte

Check for ClipboardItem access

master
Fen Dweller 5 anos atrás
pai
commit
c6c09a1afc
1 arquivos alterados com 4 adições e 0 exclusões
  1. +4
    -0
      macrovision.js

+ 4
- 0
macrovision.js Ver arquivo

@@ -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({


Carregando…
Cancelar
Salvar