From fa4c4e22fdc13148e8811494913e78ef66f0ee9c Mon Sep 17 00:00:00 2001 From: zhangweiii Date: Thu, 4 Jun 2020 10:53:02 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BF=AE=E5=A4=8DMac=E4=B8=8Bdock=E6=A0=8F?= =?UTF-8?q?=E4=B8=8D=E6=98=BE=E7=A4=BA=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/background.js | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/src/background.js b/src/background.js index 35eb857..0dda915 100644 --- a/src/background.js +++ b/src/background.js @@ -16,7 +16,7 @@ let mini // Scheme must be registered before the app is ready protocol.registerSchemesAsPrivileged([{ scheme: 'app', privileges: { secure: true, standard: true } }]) -function createWindow () { +function createWindow() { win = new BrowserWindow({ width: 1080, height: 720, @@ -44,7 +44,7 @@ function createWindow () { }) } -function createMini () { +function createMini() { mini = new BrowserWindow({ width: 550, minWidth: 260, @@ -178,6 +178,9 @@ if (!gotTheLock) { }) } +// show mac dock icon +app.dock.show() + // Exit cleanly on request from parent process in development mode. if (isDevelopment) { if (process.platform === 'win32') {