mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-01-03 12:47:13 -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
|
// Event needed to hide native menu bar
|
||||||
childWebContents.once('did-start-loading', () => {
|
childWebContents.once('did-start-loading', () => {
|
||||||
const browserWin = BrowserWindow.fromWebContents(childWebContents) as ICustomBrowserWindow;
|
const browserWin = BrowserWindow.fromWebContents(childWebContents) as ICustomBrowserWindow;
|
||||||
|
const { contextOriginUrl } = config.getGlobalConfigFields([ 'contextOriginUrl' ]);
|
||||||
browserWin.setFullScreenable(true);
|
browserWin.setFullScreenable(true);
|
||||||
browserWin.origin = windowHandler.url;
|
browserWin.origin = contextOriginUrl || windowHandler.url;
|
||||||
if (isWindowsOS && browserWin && !browserWin.isDestroyed()) {
|
if (isWindowsOS && browserWin && !browserWin.isDestroyed()) {
|
||||||
browserWin.setMenuBarVisibility(false);
|
browserWin.setMenuBarVisibility(false);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user