aboutsummaryrefslogtreecommitdiffstats
path: root/web_src/js/features/clipboard.js
diff options
context:
space:
mode:
authorsilverwind <me@silverwind.io>2022-11-22 01:58:55 +0100
committerGitHub <noreply@github.com>2022-11-22 08:58:55 +0800
commitc8b217110ba44ca50f565aa521d5ae63003d8b5a (patch)
tree59fbf33653e2e7a865779e8d7fafdcb072a8a32e /web_src/js/features/clipboard.js
parent1c7496c7a7e4c3145ab90bbef129dd7c1a0189dd (diff)
downloadgitea-c8b217110ba44ca50f565aa521d5ae63003d8b5a.tar.gz
gitea-c8b217110ba44ca50f565aa521d5ae63003d8b5a.zip
Update JS dependencies (#21881)
- Update all JS deps - Regenerate SVGs - Add new eslint rules, fix issues - Tested Mermaid, Swagger, Vue, Webpack, Citation Co-authored-by: Lunny Xiao <xiaolunwen@gmail.com>
Diffstat (limited to 'web_src/js/features/clipboard.js')
-rw-r--r--web_src/js/features/clipboard.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/web_src/js/features/clipboard.js b/web_src/js/features/clipboard.js
index f266d4f64d..75b96cb781 100644
--- a/web_src/js/features/clipboard.js
+++ b/web_src/js/features/clipboard.js
@@ -4,7 +4,7 @@ const {copy_success, copy_error} = window.config.i18n;
export async function copyToClipboard(content) {
if (content instanceof Blob) {
- const item = new window.ClipboardItem({[content.type]: content});
+ const item = new ClipboardItem({[content.type]: content});
await navigator.clipboard.write([item]);
} else { // text
try {