fix: window客户端弹出错误
This commit is contained in:
4
electron/main.js
vendored
4
electron/main.js
vendored
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user