From f180585484840a4f2d0a4b07ad46dc9aee4d1394 Mon Sep 17 00:00:00 2001 From: Kiran Niranjan Date: Thu, 9 Nov 2017 12:53:49 +0530 Subject: [PATCH] Electron-139 - Disabled menu bar for pop-out windows --- js/windowMgr.js | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/js/windowMgr.js b/js/windowMgr.js index 600ef2b1..4543ba00 100644 --- a/js/windowMgr.js +++ b/js/windowMgr.js @@ -347,6 +347,12 @@ function doCreateMainWindow(initialUrl, initialBounds) { if (browserWin) { log.send(logLevels.INFO, 'loaded pop-out window url: ' + newWinParsedUrl); + if (!isMac) { + // Removes the menu bar from the pop-out window + // setMenu is currently only supported on Windows and Linux + browserWin.setMenu(null); + } + getConfigField('url') .then((podUrl) => { getConfigField('crashReporter')