Skip to content

Commit 307c955

Browse files
committed
Revert "Update indirect eslint dependencies to allow ClipboardItem global"
This reverts commit 476519e119c8a575e9325632f64aec1ac9cc8f17.
1 parent 76992e9 commit 307c955

File tree

2 files changed

+58
-61
lines changed

2 files changed

+58
-61
lines changed

package-lock.json

Lines changed: 57 additions & 60 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 ClipboardItem({[content.type]: content}); // may throw on unsupporting browsers
7+
const item = new window.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)