We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 617988c commit a4c2ab8Copy full SHA for a4c2ab8
web_src/js/features/clipboard.js
@@ -4,7 +4,7 @@ const {copy_success, copy_error} = window.config.i18n;
4
5
export async function copyToClipboard(content) {
6
if (content instanceof Blob) {
7
- const item = new window.ClipboardItem({[content.type]: content}); // may throw on unsupporting browsers
+ const item = new window.ClipboardItem({[content.type]: content});
8
await navigator.clipboard.write([item]);
9
} else { // text
10
try {
0 commit comments