mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-02-25 18:55:29 -06:00
ELECTRON-1066, 1067: upgrade electron version (#567)
- upgrade electron framework version to address security vulnerability with native window open and node integration - disable background throttling on requests when creating a new window
This commit is contained in:
committed by
GitHub
parent
2d400b2775
commit
dd0e7af850
@@ -204,6 +204,7 @@ function doCreateMainWindow(initialUrl, initialBounds, isCustomTitleBar) {
|
||||
sandbox: true,
|
||||
nodeIntegration: false,
|
||||
preload: preloadMainScript,
|
||||
backgroundThrottling: false
|
||||
}
|
||||
};
|
||||
|
||||
@@ -505,6 +506,7 @@ function doCreateMainWindow(initialUrl, initialBounds, isCustomTitleBar) {
|
||||
newWinOptions.alwaysOnTop = alwaysOnTop;
|
||||
newWinOptions.frame = true;
|
||||
newWinOptions.parent = null;
|
||||
newWinOptions.webPreferences.backgroundThrottling = false;
|
||||
|
||||
let newWinKey = getGuid();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user