Enable background throttling for everyone
This commit is contained in:
@@ -136,8 +136,6 @@ const development =
|
||||
getEnvironment() === Environment.Development ||
|
||||
getEnvironment() === Environment.Staging;
|
||||
|
||||
const isThrottlingEnabled = development || !isProduction(app.getVersion());
|
||||
|
||||
const enableCI = config.get<boolean>('enableCI');
|
||||
const forcePreloadBundle = config.get<boolean>('forcePreloadBundle');
|
||||
|
||||
@@ -685,7 +683,7 @@ async function createWindow() {
|
||||
: '../ts/windows/main/preload.js'
|
||||
),
|
||||
spellcheck: await getSpellCheckSetting(),
|
||||
backgroundThrottling: isThrottlingEnabled,
|
||||
backgroundThrottling: true,
|
||||
enablePreferredSizeMode: true,
|
||||
disableBlinkFeatures: 'Accelerated2dCanvas,AcceleratedSmallCanvases',
|
||||
},
|
||||
@@ -998,10 +996,6 @@ ipc.on('set-is-call-active', (_event, isCallActive) => {
|
||||
return;
|
||||
}
|
||||
|
||||
if (!isThrottlingEnabled) {
|
||||
return;
|
||||
}
|
||||
|
||||
let backgroundThrottling: boolean;
|
||||
if (isCallActive) {
|
||||
getLogger().info('Background throttling disabled because a call is active');
|
||||
|
Reference in New Issue
Block a user