🐛 Fix: server may never start

This commit is contained in:
Molunerfinn
2020-01-08 10:57:19 +08:00
parent 5f2b7c7802
commit 73870a5326
3 changed files with 24 additions and 7 deletions

View File

@@ -47,7 +47,7 @@ class Uploader {
})
picgo.on('uploadProgress', progress => {
this.webContents!.send('uploadProgress', progress)
this.webContents?.send('uploadProgress', progress)
})
picgo.on('beforeTransform', ctx => {
if (db.get('settings.uploadNotification')) {