Merge pull request #229 from KiranNiranjan/ELECTRON-139

Electron-139 (Disabled menu bar)
This commit is contained in:
Vikas Shashidhar
2017-11-09 14:30:07 +05:30
committed by GitHub
+6
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')