From b3510d6973d2fbee6acfc9416b297573cf6964af Mon Sep 17 00:00:00 2001 From: David Baker Date: Thu, 3 Nov 2016 13:37:40 +0000 Subject: [PATCH] Comment the menu stuff that we only do on mac --- electron/src/vectormenu.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/electron/src/vectormenu.js b/electron/src/vectormenu.js index 04e62f52c..fd08af6cd 100644 --- a/electron/src/vectormenu.js +++ b/electron/src/vectormenu.js @@ -102,7 +102,9 @@ const template = [ } ]; +// macOS has specific menu conventions... if (process.platform === 'darwin') { + // first macOS menu is the name of the app const name = electron.app.getName() template.unshift({ label: name, @@ -138,6 +140,7 @@ if (process.platform === 'darwin') { ] }) // Edit menu. + // This has a 'speech' section on macOS template[1].submenu.push( { type: 'separator' @@ -155,6 +158,7 @@ if (process.platform === 'darwin') { } ) // Window menu. + // This also has specific functionality on macOS template[3].submenu = [ { label: 'Close',