SDA-3431 - Fix issues with popout window by not assign parent window opts (#1299)

This commit is contained in:
Kiran Niranjan 2021-11-23 13:57:28 +05:30 committed by GitHub
parent dc77a61d4a
commit 60c0ec52f2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -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) {