mirror of
https://github.com/h3poteto/whalebird-desktop
synced 2024-12-24 16:01:20 +01:00
refs #901 Fix clipboard to use window object
This commit is contained in:
parent
2b2133fc1c
commit
d015da8923
@ -299,7 +299,7 @@ export default {
|
||||
return
|
||||
}
|
||||
e.preventDefault()
|
||||
const image = clipboard.readImage()
|
||||
const image = window.clipboard.readImage()
|
||||
let data
|
||||
if (/^image\/jpe?g$/.test(mimeTypes[0])) {
|
||||
data = image.toJPEG(100)
|
||||
|
Loading…
Reference in New Issue
Block a user