From 7d585fde1b0f425c0a07a9615395f232bd431a61 Mon Sep 17 00:00:00 2001 From: ckcr4lyf Date: Tue, 27 Aug 2019 19:20:39 +0800 Subject: [PATCH] Logging error if copy failed --- src/components/itemcontextmenu.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/itemcontextmenu.js b/src/components/itemcontextmenu.js index dbc73f2da4..7348eeef30 100644 --- a/src/components/itemcontextmenu.js +++ b/src/components/itemcontextmenu.js @@ -320,7 +320,7 @@ define(['apphost', 'globalize', 'connectionManager', 'itemHelper', 'appRouter', try { document.execCommand('copy'); } catch (err) { - + console.error("Failed to copy to clipboard"); } document.body.removeChild(textArea);