mirror of
https://github.com/finos/SymphonyElectron.git
synced 2025-01-15 19:22:13 -06:00
ELECTRON-530: add chrome flag to disable background timer throttling (#396)
- add chrome flag to disable background timer throttling - remove double hyphen while setting flag for consistency
This commit is contained in:
parent
a52c46bb6e
commit
47ac213477
@ -118,7 +118,7 @@ if (isMac) {
|
||||
*/
|
||||
function setChromeFlags() {
|
||||
|
||||
log.send(logLevels.INFO, 'checking if we need to set custom chrome flags!');
|
||||
log.send(logLevels.INFO, 'setting chrome flags!');
|
||||
|
||||
// Read the config parameters synchronously
|
||||
let config = readConfigFileSync();
|
||||
@ -126,8 +126,6 @@ function setChromeFlags() {
|
||||
// If we cannot find any config, just skip setting any flags
|
||||
if (config && config !== null && config.customFlags) {
|
||||
|
||||
log.send(logLevels.INFO, 'Chrome flags config found!');
|
||||
|
||||
if (config.customFlags.authServerWhitelist && config.customFlags.authServerWhitelist !== "") {
|
||||
log.send(logLevels.INFO, 'Setting auth server whitelist flag');
|
||||
app.commandLine.appendSwitch('auth-server-whitelist', config.customFlags.authServerWhitelist);
|
||||
@ -149,6 +147,8 @@ function setChromeFlags() {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
app.commandLine.appendSwitch("disable-background-timer-throttling", true);
|
||||
}
|
||||
|
||||
// Set the chrome flags
|
||||
|
Loading…
Reference in New Issue
Block a user