ELECTRON-670 - Remove setting menu to null for pop-out (#457)

This commit is contained in:
Kiran Niranjan 2018-08-09 18:17:49 +05:30 committed by Vishwas Shashidhar
parent 2624e706c5
commit 65b107a1ab

View File

@ -465,11 +465,6 @@ function doCreateMainWindow(initialUrl, initialBounds, isCustomTitleBar) {
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);
}
browserWin.webContents.send('on-page-load');
// applies styles required for snack bar
browserWin.webContents.insertCSS(fs.readFileSync(path.join(__dirname, '/snackBar/style.css'), 'utf8').toString());