Parcourir la source

Log a console error when a screenshot fails

master
Fen Dweller il y a 4 ans
Parent
révision
ee1bddd8c9
1 fichiers modifiés avec 5 ajouts et 4 suppressions
  1. +5
    -4
      macrovision.js

+ 5
- 4
macrovision.js Voir le fichier

@@ -5361,12 +5361,13 @@ function copyScreenshot() {
new ClipboardItem({
"image/png": blob
})
]).then(e =>
]).then(e =>
toast("Copied to clipboard!"))
.catch(e => {
toast("Couldn't write to the clipboard. Make sure the screenshot completes before switching tabs.")
})
});
console.error(e);
toast("Couldn't write to the clipboard. Make sure the screenshot completes before switching tabs.")
})
});
drawScales(false);
}



Chargement…
Annuler
Enregistrer