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

View file

@ -73,9 +73,9 @@ window.qBittorrent.Client ??= (() => {
}; };
const getSyncMainDataInterval = () => { const getSyncMainDataInterval = () => {
return document.hidden if (document.hidden)
? window.qBittorrent.Cache.preferences.get().web_ui_session_timeout * 500 return window.qBittorrent.Cache.preferences.get().web_ui_session_timeout * 500;
: customSyncMainDataInterval ? customSyncMainDataInterval : serverSyncMainDataInterval; return customSyncMainDataInterval ? customSyncMainDataInterval : serverSyncMainDataInterval;
}; };
let stopped = false; let stopped = false;