瀏覽代碼

Log a console error when a screenshot fails

master
Fen Dweller 4 年之前
父節點
當前提交
ee1bddd8c9
共有 1 個檔案被更改,包括 5 行新增4 行删除
  1. +5
    -4
      macrovision.js

+ 5
- 4
macrovision.js 查看文件

@@ -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);
}



Loading…
取消
儲存