Skip to content

Commit a4c2ab8

Browse files
committed
Update web_src/js/features/clipboard.js
1 parent 617988c commit a4c2ab8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

web_src/js/features/clipboard.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const {copy_success, copy_error} = window.config.i18n;
44

55
export async function copyToClipboard(content) {
66
if (content instanceof Blob) {
7-
const item = new window.ClipboardItem({[content.type]: content}); // may throw on unsupporting browsers
7+
const item = new window.ClipboardItem({[content.type]: content});
88
await navigator.clipboard.write([item]);
99
} else { // text
1010
try {

0 commit comments

Comments
 (0)