From cd30a6c70c09b993a9a75de2d00a13545ed83391 Mon Sep 17 00:00:00 2001 From: Molunerfinn Date: Sat, 28 Dec 2019 15:19:27 +0800 Subject: [PATCH] :bug: Fix: beforeOpen handler in windows --- src/background.ts | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/background.ts b/src/background.ts index c936959..edab74a 100644 --- a/src/background.ts +++ b/src/background.ts @@ -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