fix: fix lint

This commit is contained in:
purocean
2021-12-20 18:58:40 +08:00
parent 5c17b6e67e
commit 2bfad52bd7
+1 -1
View File
@@ -129,7 +129,7 @@ export async function writeToClipboard (type: string, value: any) {
return
}
return navigator.clipboard.write([new ClipboardItem({
return (navigator.clipboard as any).write([new (window as any).ClipboardItem({
[type]: new Blob([value], { type })
})])
}