fix: window客户端弹出错误
This commit is contained in:
parent
a32995abec
commit
ccf4c4bbb3
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 {
|
||||
|
Loading…
x
Reference in New Issue
Block a user