mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-29 02:11:28 -06:00
SDA-2301 - Include context origin url for pop-out window (#1039)
This commit is contained in:
parent
da979cf335
commit
0cafaf3985
@ -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);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user