From fe98f90d70dd9e112f68fb2cfc0a80f1f1b7a209 Mon Sep 17 00:00:00 2001 From: Evan Hahn <69474926+EvanHahn-Signal@users.noreply.github.com> Date: Thu, 14 Oct 2021 13:09:30 -0500 Subject: [PATCH] Only enable background throttling in development --- app/main.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/app/main.ts b/app/main.ts index e58d7ed17e53..5aab87b8f1c6 100644 --- a/app/main.ts +++ b/app/main.ts @@ -446,10 +446,10 @@ async function createWindow() { ), nativeWindowOpen: true, spellcheck: await getSpellCheckSetting(), - // We are evaluating background throttling in prerelease versions. If we decide to + // We are evaluating background throttling in development. If we decide to // move forward, we can remove this line (as `backgroundThrottling` is true by // default). - backgroundThrottling: !isProduction(app.getVersion()), + backgroundThrottling: development, enablePreferredSizeMode: true, }, icon: windowIcon, @@ -737,9 +737,9 @@ ipc.on('set-is-call-active', (_event, isCallActive) => { return; } - // We are evaluating background throttling in prerelease versions. If we decide to move + // We are evaluating background throttling in development. If we decide to move // forward, we can remove this check. - if (isProduction(app.getVersion())) { + if (!development) { return; }