mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-31 19:27:00 -06:00
SDA-3431 - Fix issues with popout window by not assign parent window opts (#1299)
This commit is contained in:
parent
dc77a61d4a
commit
60c0ec52f2
@ -125,8 +125,6 @@ export const handleChildWindow = (webContents: WebContents): void => {
|
|||||||
action: 'deny',
|
action: 'deny',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
const newWinOptions = windowHandler.getMainWindowOpts();
|
|
||||||
const newWinUrlData = whitelistHandler.parseDomain(details.url);
|
const newWinUrlData = whitelistHandler.parseDomain(details.url);
|
||||||
const mainWinUrlData = whitelistHandler.parseDomain(windowHandler.url);
|
const mainWinUrlData = whitelistHandler.parseDomain(windowHandler.url);
|
||||||
|
|
||||||
@ -162,7 +160,7 @@ export const handleChildWindow = (webContents: WebContents): void => {
|
|||||||
return {
|
return {
|
||||||
action: 'allow',
|
action: 'allow',
|
||||||
// override child window options
|
// override child window options
|
||||||
overrideBrowserWindowOptions: { ...newWinOptions, ...{ frame: true } },
|
overrideBrowserWindowOptions: { frame: true },
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
if (details.url && details.url.length > 2083) {
|
if (details.url && details.url.length > 2083) {
|
||||||
|
Loading…
Reference in New Issue
Block a user