mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-01-03 12:47:13 -06:00
Merge pull request #940 from KiranNiranjan/SDA-1877
fix: SDA-1877 (Fix blank pop-out issue in 8.x electron version)
This commit is contained in:
commit
51751b9e4c
@ -32,7 +32,7 @@
|
||||
"start": "run-s compile browserify && cross-env ELECTRON_DEV=true electron .",
|
||||
"test": "run-s lint test:unit",
|
||||
"test:unit": "cross-env ELECTRON_QA=true jest --config jest-config.json --runInBand --detectOpenHandles",
|
||||
"test:spectron": "npm run copy && run-s lint compile browserify && npx ava --verbose --serial",
|
||||
"test:spectron": "npm run copy && run-s lint compile browserify && cross-env ELECTRON_QA=true npx ava --verbose --serial",
|
||||
"copy": "run-os",
|
||||
"copy:darwin": "ncp config 'node_modules/electron/dist/Electron.app/Contents/config'",
|
||||
"copy:win32": "ncp config node_modules\\electron\\dist\\config",
|
||||
|
@ -2,7 +2,7 @@ import { app } from 'electron';
|
||||
import * as electronDownloader from 'electron-dl';
|
||||
import * as shellPath from 'shell-path';
|
||||
|
||||
import { isDevEnv, isLinux, isMac } from '../common/env';
|
||||
import { isDevEnv, isElectronQA, isLinux, isMac } from '../common/env';
|
||||
import { logger } from '../common/logger';
|
||||
import { getCommandLineArgs } from '../common/utils';
|
||||
import { cleanUpAppCache, createAppCacheFile } from './app-cache-handler';
|
||||
@ -49,6 +49,12 @@ electronDownloader();
|
||||
handlePerformanceSettings();
|
||||
setChromeFlags();
|
||||
|
||||
// Need this to prevent blank pop-out from 8.x versions
|
||||
// Refer - SDA-1877 - https://github.com/electron/electron/issues/18397
|
||||
if (!isElectronQA) {
|
||||
app.allowRendererProcessReuse = true;
|
||||
}
|
||||
|
||||
// Electron sets the default protocol
|
||||
if (!isDevEnv) {
|
||||
app.setAsDefaultProtocolClient('symphony');
|
||||
|
Loading…
Reference in New Issue
Block a user