diff --git a/app/lib/index.ts b/app/lib/index.ts index 91de8a9b..64537c47 100644 --- a/app/lib/index.ts +++ b/app/lib/index.ts @@ -47,13 +47,15 @@ if (argv.d) { } app.on('ready', () => { - app.dock.setMenu(Menu.buildFromTemplate([ - { - label: 'New window', - click () { - this.app.newWindow() + if (process.platform === 'darwin') { + app.dock.setMenu(Menu.buildFromTemplate([ + { + label: 'New window', + click () { + this.app.newWindow() + } } - } - ])) + ])) + } application.newWindow() })