mirror of
https://github.com/lana-k/sqliteviz.git
synced 2025-12-06 10:08:52 +08:00
fix lint errors #50
This commit is contained in:
@@ -3,7 +3,7 @@ import dataUrlToBlob from 'dataurl-to-blob'
|
||||
|
||||
async function _copyBlob (blob) {
|
||||
await navigator.clipboard.write([
|
||||
new ClipboardItem({
|
||||
new ClipboardItem({ // eslint-disable-line no-undef
|
||||
[blob.type]: blob
|
||||
})
|
||||
])
|
||||
|
||||
@@ -110,7 +110,7 @@ export default {
|
||||
if ('ClipboardItem' in window) {
|
||||
this.$refs.viewComponent.copyPngToClipboard()
|
||||
} else {
|
||||
alert ("Your browser doesn't support copying images into the clipboard. If you use Firefox you can enable it by setting dom.events.asyncClipboard.clipboardItem to true.")
|
||||
alert("Your browser doesn't support copying images into the clipboard. If you use Firefox you can enable it by setting dom.events.asyncClipboard.clipboardItem to true.")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user