mirror of
https://github.com/purocean/yn.git
synced 2026-09-24 15:46:02 +08:00
fix: fix lint
This commit is contained in:
@@ -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 })
|
||||
})])
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user