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

This commit is contained in:
Kiran Niranjan 2020-07-28 19:13:11 +05:30 committed by GitHub
parent da979cf335
commit 0cafaf3985
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

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);
}