Compare commits

...
2 Commits
Author SHA1 Message Date
Molunerfinn 504690b729 1.4.1 2018-01-30 19:08:00 +08:00
Molunerfinn 937979ae3d Fixed: can not use shortcut when settingWindow is closed 2018-01-30 19:05:13 +08:00
2 changed files with 3 additions and 2 deletions
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "picgo",
"version": "1.4.0",
"version": "1.4.1",
"author": "Molunerfinn <marksz@teamsz.xyz>",
"description": "Easy to upload your pic & copy to write",
"license": "MIT",
+2 -1
View File
@@ -309,7 +309,8 @@ const uploadClipboardFiles = async () => {
imgUrl
}
}
img = await uploader(uploadImg, 'imgFromClipboard', settingWindow.webContents)
const win = settingWindow || window
img = await uploader(uploadImg, 'imgFromClipboard', win.webContents)
if (img !== false) {
if (img.length > 0) {
const pasteStyle = db.read().get('picBed.pasteStyle').value() || 'markdown'