SDA-2013: fix origin check for simplified installer (#981)

Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>
This commit is contained in:
Vishwas Shashidhar 2020-04-30 19:57:26 +05:30 committed by GitHub
parent 4448338bb5
commit 90bbfc526e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -159,7 +159,7 @@ export const handleChildWindow = (webContents: WebContents): void => {
// Event needed to hide native menu bar
childWebContents.once('did-start-loading', () => {
const browserWin = BrowserWindow.fromWebContents(childWebContents) as ICustomBrowserWindow;
browserWin.origin = config.getGlobalConfigFields([ 'url' ]).url;
browserWin.origin = windowHandler.url;
if (isWindowsOS && browserWin && !browserWin.isDestroyed()) {
browserWin.setMenuBarVisibility(false);
}

View File

@ -254,7 +254,7 @@ export class WindowHandler {
// check for build expiry in case of test builds
this.checkExpiry(this.mainWindow);
// need this for postMessage origin
this.mainWindow.origin = this.globalConfig.url;
this.mainWindow.origin = this.url;
// Event needed to hide native menu bar on Windows 10 as we use custom menu bar
this.mainWindow.webContents.once('did-start-loading', () => {