1
0
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:
AkiraFukushima 2019-11-20 23:32:12 +09:00
parent 2b2133fc1c
commit d015da8923

View File

@ -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)