🐛 Fix: beforeOpen handler in windows

This commit is contained in:
Molunerfinn 2019-12-28 15:19:27 +08:00
parent a33f1adeb3
commit cd30a6c70c

View File

@ -40,9 +40,7 @@ import logger from '~/main/utils/logger'
const isDevelopment = process.env.NODE_ENV !== 'production'
protocol.registerSchemesAsPrivileged([{ scheme: 'picgo', privileges: { secure: true, standard: true } }])
if (process.platform === 'darwin') {
beforeOpen()
}
beforeOpen()
let window: BrowserWindow | null
let settingWindow: BrowserWindow | null