From ee1bddd8c9dfe7a1cb252e0d3ffd5ac47f3bdaa1 Mon Sep 17 00:00:00 2001 From: Fen Dweller Date: Wed, 29 Dec 2021 10:20:25 -0600 Subject: [PATCH] Log a console error when a screenshot fails --- macrovision.js | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/macrovision.js b/macrovision.js index 76f69064..d30df636 100644 --- a/macrovision.js +++ b/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); }