Logging error if copy failed

This commit is contained in:
ckcr4lyf 2019-08-27 19:20:39 +08:00
parent 0ea9faee08
commit 7d585fde1b

View File

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