From 8c72be25e4868bca68645b3df9c1fee9b702301b Mon Sep 17 00:00:00 2001 From: bolshoytoster <91278344+bolshoytoster@users.noreply.github.com> Date: Sun, 1 Jun 2025 08:54:00 +0100 Subject: [PATCH] Reformat Co-authored-by: Chocobo1 --- src/webui/www/private/scripts/client.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/webui/www/private/scripts/client.js b/src/webui/www/private/scripts/client.js index 929fa6f91..8962c4da7 100644 --- a/src/webui/www/private/scripts/client.js +++ b/src/webui/www/private/scripts/client.js @@ -73,9 +73,9 @@ window.qBittorrent.Client ??= (() => { }; const getSyncMainDataInterval = () => { - return document.hidden - ? window.qBittorrent.Cache.preferences.get().web_ui_session_timeout * 500 - : customSyncMainDataInterval ? customSyncMainDataInterval : serverSyncMainDataInterval; + if (document.hidden) + return window.qBittorrent.Cache.preferences.get().web_ui_session_timeout * 500; + return customSyncMainDataInterval ? customSyncMainDataInterval : serverSyncMainDataInterval; }; let stopped = false;