From f3e90314ea7eda72a897b6cd8870cd78c235dc97 Mon Sep 17 00:00:00 2001 From: bolshoytoster Date: Sat, 31 May 2025 21:07:23 +0100 Subject: [PATCH] Format --- src/webui/www/private/scripts/client.js | 11 +++++------ 1 file changed, 5 insertions(+), 6 deletions(-) diff --git a/src/webui/www/private/scripts/client.js b/src/webui/www/private/scripts/client.js index f44d4d7fe..929fa6f91 100644 --- a/src/webui/www/private/scripts/client.js +++ b/src/webui/www/private/scripts/client.js @@ -75,9 +75,7 @@ window.qBittorrent.Client ??= (() => { const getSyncMainDataInterval = () => { return document.hidden ? window.qBittorrent.Cache.preferences.get().web_ui_session_timeout * 500 - : customSyncMainDataInterval - ? customSyncMainDataInterval - : serverSyncMainDataInterval; + : customSyncMainDataInterval ? customSyncMainDataInterval : serverSyncMainDataInterval; }; let stopped = false; @@ -958,7 +956,8 @@ window.addEventListener("DOMContentLoaded", (event) => { if (fullUpdate) // re-select previously selected rows torrentsTable.reselectRows(torrentsTableSelectedRows); - } else if (response.status === 403) { + } + else if (response.status === 403) { const errorDiv = document.getElementById("error_div"); if (errorDiv) errorDiv.textContent = "QBT_TR(You've been logged out)QBT_TR[CONTEXT=HttpServer]"; @@ -974,8 +973,8 @@ window.addEventListener("DOMContentLoaded", (event) => { syncRequestInProgress = false; syncData( document.hidden - ? window.qBittorrent.Cache.preferences.get().web_ui_session_timeout * 500 - : 2000 + ? window.qBittorrent.Cache.preferences.get().web_ui_session_timeout * 500 + : 2000 ); }); };