This commit is contained in:
bolshoytoster 2025-05-31 21:07:23 +01:00
commit f3e90314ea

View file

@ -75,9 +75,7 @@ window.qBittorrent.Client ??= (() => {
const getSyncMainDataInterval = () => { const getSyncMainDataInterval = () => {
return document.hidden return document.hidden
? window.qBittorrent.Cache.preferences.get().web_ui_session_timeout * 500 ? window.qBittorrent.Cache.preferences.get().web_ui_session_timeout * 500
: customSyncMainDataInterval : customSyncMainDataInterval ? customSyncMainDataInterval : serverSyncMainDataInterval;
? customSyncMainDataInterval
: serverSyncMainDataInterval;
}; };
let stopped = false; let stopped = false;
@ -958,7 +956,8 @@ window.addEventListener("DOMContentLoaded", (event) => {
if (fullUpdate) if (fullUpdate)
// re-select previously selected rows // re-select previously selected rows
torrentsTable.reselectRows(torrentsTableSelectedRows); torrentsTable.reselectRows(torrentsTableSelectedRows);
} else if (response.status === 403) { }
else if (response.status === 403) {
const errorDiv = document.getElementById("error_div"); const errorDiv = document.getElementById("error_div");
if (errorDiv) if (errorDiv)
errorDiv.textContent = "QBT_TR(You've been logged out)QBT_TR[CONTEXT=HttpServer]"; errorDiv.textContent = "QBT_TR(You've been logged out)QBT_TR[CONTEXT=HttpServer]";