SDA-2301 - Include context origin url for pop-out window (#1038)

This commit is contained in:
Kiran Niranjan
2020-07-28 18:40:48 +05:30
committed by GitHub
parent 991fa78399
commit 21e2263495

View File

@@ -159,8 +159,9 @@ 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;
const { contextOriginUrl } = config.getGlobalConfigFields([ 'contextOriginUrl' ]);
browserWin.setFullScreenable(true);
browserWin.origin = windowHandler.url;
browserWin.origin = contextOriginUrl || windowHandler.url;
if (isWindowsOS && browserWin && !browserWin.isDestroyed()) {
browserWin.setMenuBarVisibility(false);
}