From ccf4c4bbb34ad646c9bf8ad7839ce1ec07e035c7 Mon Sep 17 00:00:00 2001 From: kuaifan Date: Sat, 25 Dec 2021 11:11:57 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20window=E5=AE=A2=E6=88=B7=E7=AB=AF?= =?UTF-8?q?=E5=BC=B9=E5=87=BA=E9=94=99=E8=AF=AF?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- electron/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/electron/main.js b/electron/main.js index 9de1eacd..9c43b7c8 100644 --- a/electron/main.js +++ b/electron/main.js @@ -100,6 +100,10 @@ ipcMain.on('windowMax', function () { }) ipcMain.on('setDockBadge', (event, arg) => { + if(process.platform !== 'darwin'){ + console.log('Mac only'); + return; + } if (runNum(arg) > 0) { app.dock.setBadge(String(arg)) } else {