Explorar el Código

Check for ClipboardItem access

master
Fen Dweller hace 5 años
padre
commit
c6c09a1afc
Se han modificado 1 ficheros con 4 adiciones y 0 borrados
  1. +4
    -0
      macrovision.js

+ 4
- 0
macrovision.js Ver fichero

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


Cargando…
Cancelar
Guardar