yangjie #22
6
main.js
6
main.js
|
|
@ -75,13 +75,7 @@ function createTray() {
|
|||
},
|
||||
{
|
||||
label: '退出', click: async () => {
|
||||
const url = mainWindow.webContents.getURL();
|
||||
const hash = new URL(url).hash;
|
||||
if (hash.indexOf('/meeting') === -1) {
|
||||
quit()
|
||||
} else {
|
||||
await mainWindow.webContents.send('quitAndInstall');
|
||||
}
|
||||
},
|
||||
// icon: iconPath,
|
||||
},
|
||||
|
|
|
|||
Loading…
Reference in New Issue