1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2025-02-03 18:57:43 +01:00

refs #377 Add dock menu only mac

This commit is contained in:
AkiraFukushima 2018-07-21 14:29:52 +09:00
parent 2514c587ac
commit 937662b92f

View File

@ -265,8 +265,10 @@ async function createWindow () {
/** /**
* Set dock menu for mac * Set dock menu for mac
*/ */
const dockMenu = Menu.buildFromTemplate(accountsChange) if (process.platform === 'darwin') {
app.dock.setMenu(dockMenu) const dockMenu = Menu.buildFromTemplate(accountsChange)
app.dock.setMenu(dockMenu)
}
/** /**
* Initial window options * Initial window options