From 59c9723606d9cf0c369086078977df2a97b79f02 Mon Sep 17 00:00:00 2001 From: bolshoytoster <91278344+bolshoytoster@users.noreply.github.com> Date: Sun, 1 Jun 2025 08:54:13 +0100 Subject: [PATCH] Reformat Co-authored-by: Chocobo1 --- src/webui/www/private/scripts/client.js | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/webui/www/private/scripts/client.js b/src/webui/www/private/scripts/client.js index 8962c4da7..466d9bd7b 100644 --- a/src/webui/www/private/scripts/client.js +++ b/src/webui/www/private/scripts/client.js @@ -971,11 +971,9 @@ window.addEventListener("DOMContentLoaded", (event) => { if (errorDiv) errorDiv.textContent = "QBT_TR(qBittorrent client is not reachable)QBT_TR[CONTEXT=HttpServer]"; syncRequestInProgress = false; - syncData( - document.hidden - ? window.qBittorrent.Cache.preferences.get().web_ui_session_timeout * 500 - : 2000 - ); + syncData(document.hidden + ? (window.qBittorrent.Cache.preferences.get().web_ui_session_timeout * 500) + : 2000); }); };