From ac513fbce625bfc3f5647b13de158d964392a56b Mon Sep 17 00:00:00 2001 From: hunlongyu Date: Fri, 5 Jun 2020 11:09:19 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=99=84=20=E8=A7=A3=E5=86=B3=20Mac=20?= =?UTF-8?q?=E4=B8=8B=20dock=20=E6=A0=8F=E4=B8=8D=E6=98=BE=E7=A4=BA?= =?UTF-8?q?=E5=9B=BE=E6=A0=87=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/background.js | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/src/background.js b/src/background.js index 0dda915..ca44914 100644 --- a/src/background.js +++ b/src/background.js @@ -74,6 +74,10 @@ function createMini() { }) } +if (process.platform === 'darwin') { + app.dock.show() +} + app.allowRendererProcessReuse = true app.commandLine.appendSwitch('disable-features', 'OutOfBlinkCors') if (process.platform === 'Linux') { @@ -178,9 +182,6 @@ 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') {