Electron-139 - Disabled menu bar for pop-out windows

This commit is contained in:
Kiran Niranjan 2017-11-09 12:53:49 +05:30 committed by Kiran Niranjan
parent 992503e966
commit f180585484

View File

@ -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')