Kaynağa Gözat

Log a console error when a screenshot fails

master
Fen Dweller 4 yıl önce
ebeveyn
işleme
ee1bddd8c9
1 değiştirilmiş dosya ile 5 ekleme ve 4 silme
  1. +5
    -4
      macrovision.js

+ 5
- 4
macrovision.js Dosyayı Görüntüle

@@ -5361,12 +5361,13 @@ function copyScreenshot() {
new ClipboardItem({ new ClipboardItem({
"image/png": blob "image/png": blob
}) })
]).then(e =>
]).then(e =>
toast("Copied to clipboard!")) toast("Copied to clipboard!"))
.catch(e => { .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); drawScales(false);
} }




Yükleniyor…
İptal
Kaydet