mirror of
https://github.com/qbittorrent/qBittorrent
synced 2025-08-20 21:33:27 -07:00
Format
This commit is contained in:
parent
4ce90c5d36
commit
f3e90314ea
1 changed files with 5 additions and 6 deletions
|
@ -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]";
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue