Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com>
This commit is contained in:
bolshoytoster 2025-06-01 08:54:13 +01:00 committed by GitHub
commit 59c9723606
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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);
});
};