1
0
mirror of https://github.com/lana-k/sqliteviz.git synced 2025-12-06 18:18:53 +08:00

fix lint errors #50

This commit is contained in:
lana-k
2021-08-20 22:33:15 +02:00
parent 88c62a1dfb
commit 0cae368350
2 changed files with 2 additions and 2 deletions

View File

@@ -3,7 +3,7 @@ import dataUrlToBlob from 'dataurl-to-blob'
async function _copyBlob (blob) { async function _copyBlob (blob) {
await navigator.clipboard.write([ await navigator.clipboard.write([
new ClipboardItem({ new ClipboardItem({ // eslint-disable-line no-undef
[blob.type]: blob [blob.type]: blob
}) })
]) ])

View File

@@ -110,7 +110,7 @@ export default {
if ('ClipboardItem' in window) { if ('ClipboardItem' in window) {
this.$refs.viewComponent.copyPngToClipboard() this.$refs.viewComponent.copyPngToClipboard()
} else { } 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.")
} }
} }
} }