ELECTRON-720 - Set menu to null (#513)

This commit is contained in:
Kiran Niranjan
2018-10-29 14:35:00 +05:30
committed by Vishwas Shashidhar
parent bae410ebbb
commit 0d44901180
3 changed files with 14 additions and 0 deletions

View File

@@ -105,6 +105,10 @@ function openBasicAuthWindow(windowName, hostname, isValidCredentials, clearSett
initCrashReporterRenderer(basicAuthWindow, { process: 'render | basic auth window' });
basicAuthWindow.webContents.send('hostname', hostname);
basicAuthWindow.webContents.send('isValidCredentials', isValidCredentials);
if (!isMac) {
// prevents from displaying menu items when "alt" key is pressed
basicAuthWindow.setMenu(null);
}
});
basicAuthWindow.webContents.on('crashed', function () {