Skip to content

Commit 76992e9

Browse files
committed
Update indirect eslint dependencies to allow ClipboardItem global
Ref: sindresorhus/globals#194
1 parent 6ff315e commit 76992e9

File tree

2 files changed

+61
-58
lines changed

2 files changed

+61
-58
lines changed

package-lock.json

Lines changed: 60 additions & 57 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

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
7+
const item = new ClipboardItem({[content.type]: content}); // may throw on unsupporting browsers
88
await navigator.clipboard.write([item]);
99
} else { // text
1010
try {

0 commit comments

Comments
 (0)