SDA-3475 - Fix issues with popout window by not assign parent window opts (#1300)

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

View File

@ -14,7 +14,7 @@ import { i18n } from '../common/i18n';
import { logger } from '../common/logger';
import { getGuid } from '../common/utils';
import { whitelistHandler } from '../common/whitelist-handler';
import { config } from './config-handler';
import { CloudConfigDataTypes, config } from './config-handler';
import crashHandler from './crash-handler';
import { mainEvents } from './main-event-handler';
import {
@ -157,10 +157,19 @@ export const handleChildWindow = (webContents: WebContents): void => {
action: 'deny',
};
}
const configSettings = config.getConfigFields(['alwaysOnTop']);
return {
action: 'allow',
// override child window options
overrideBrowserWindowOptions: { frame: true },
overrideBrowserWindowOptions: {
frame: true,
alwaysOnTop:
configSettings.alwaysOnTop === CloudConfigDataTypes.ENABLED ||
false,
minHeight: 300,
minWidth: 300,
title: 'Symphony',
},
};
} else {
if (details.url && details.url.length > 2083) {