mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-29 02:11:28 -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',
|
||||
};
|
||||
}
|
||||
|
||||
const newWinOptions = windowHandler.getMainWindowOpts();
|
||||
const newWinUrlData = whitelistHandler.parseDomain(details.url);
|
||||
const mainWinUrlData = whitelistHandler.parseDomain(windowHandler.url);
|
||||
|
||||
@ -162,7 +160,7 @@ export const handleChildWindow = (webContents: WebContents): void => {
|
||||
return {
|
||||
action: 'allow',
|
||||
// override child window options
|
||||
overrideBrowserWindowOptions: { ...newWinOptions, ...{ frame: true } },
|
||||
overrideBrowserWindowOptions: { frame: true },
|
||||
};
|
||||
} else {
|
||||
if (details.url && details.url.length > 2083) {
|
||||
|
Loading…
Reference in New Issue
Block a user