mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
SDA-2013: fix origin check for simplified installer (#981)
Signed-off-by: Vishwas Shashidhar <vishwas.shashidhar@symphony.com>
This commit is contained in:
parent
4448338bb5
commit
90bbfc526e
@ -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);
|
||||
}
|
||||
|
@ -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', () => {
|
||||
|
Loading…
Reference in New Issue
Block a user