1
1
mirror of https://github.com/Eugeny/tabby.git synced 2024-11-10 12:16:34 +03:00

Only MacOS support app.dock (#410)

This commit is contained in:
Domain 2018-09-05 16:24:16 +08:00 committed by Eugene
parent c285b89b6c
commit f81bda1686

View File

@ -47,6 +47,7 @@ if (argv.d) {
} }
app.on('ready', () => { app.on('ready', () => {
if (process.platform === 'darwin') {
app.dock.setMenu(Menu.buildFromTemplate([ app.dock.setMenu(Menu.buildFromTemplate([
{ {
label: 'New window', label: 'New window',
@ -55,5 +56,6 @@ app.on('ready', () => {
} }
} }
])) ]))
}
application.newWindow() application.newWindow()
}) })