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
+1 -1
View File
@@ -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.")
}
}
}