mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 05:13:30 -07:00
Reformat
Co-authored-by: Chocobo1 <Chocobo1@users.noreply.github.com>
This commit is contained in:
parent
f3e90314ea
commit
8c72be25e4
1 changed files with 3 additions and 3 deletions
|
@ -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;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue