mirror of
https://github.com/finos/SymphonyElectron.git
synced 2024-12-31 19:27:00 -06:00
SDA-3475 - Fix issues with popout window by not assign parent window opts (#1300)
This commit is contained in:
parent
60c0ec52f2
commit
bfcaae5e57
@ -14,7 +14,7 @@ import { i18n } from '../common/i18n';
|
|||||||
import { logger } from '../common/logger';
|
import { logger } from '../common/logger';
|
||||||
import { getGuid } from '../common/utils';
|
import { getGuid } from '../common/utils';
|
||||||
import { whitelistHandler } from '../common/whitelist-handler';
|
import { whitelistHandler } from '../common/whitelist-handler';
|
||||||
import { config } from './config-handler';
|
import { CloudConfigDataTypes, config } from './config-handler';
|
||||||
import crashHandler from './crash-handler';
|
import crashHandler from './crash-handler';
|
||||||
import { mainEvents } from './main-event-handler';
|
import { mainEvents } from './main-event-handler';
|
||||||
import {
|
import {
|
||||||
@ -157,10 +157,19 @@ export const handleChildWindow = (webContents: WebContents): void => {
|
|||||||
action: 'deny',
|
action: 'deny',
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
const configSettings = config.getConfigFields(['alwaysOnTop']);
|
||||||
return {
|
return {
|
||||||
action: 'allow',
|
action: 'allow',
|
||||||
// override child window options
|
// override child window options
|
||||||
overrideBrowserWindowOptions: { frame: true },
|
overrideBrowserWindowOptions: {
|
||||||
|
frame: true,
|
||||||
|
alwaysOnTop:
|
||||||
|
configSettings.alwaysOnTop === CloudConfigDataTypes.ENABLED ||
|
||||||
|
false,
|
||||||
|
minHeight: 300,
|
||||||
|
minWidth: 300,
|
||||||
|
title: 'Symphony',
|
||||||
|
},
|
||||||
};
|
};
|
||||||
} else {
|
} else {
|
||||||
if (details.url && details.url.length > 2083) {
|
if (details.url && details.url.length > 2083) {
|
||||||
|
Loading…
Reference in New Issue
Block a user