1
0
mirror of https://github.com/h3poteto/whalebird-desktop synced 2025-02-03 10:47:34 +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
*/
const dockMenu = Menu.buildFromTemplate(accountsChange)
app.dock.setMenu(dockMenu)
if (process.platform === 'darwin') {
const dockMenu = Menu.buildFromTemplate(accountsChange)
app.dock.setMenu(dockMenu)
}
/**
* Initial window options