diff --git a/src/webui/www/private/scripts/piecesbar.js b/src/webui/www/private/scripts/piecesbar.js index 1e4cfbca1..bfaf540e4 100644 --- a/src/webui/www/private/scripts/piecesbar.js +++ b/src/webui/www/private/scripts/piecesbar.js @@ -88,7 +88,7 @@ window.qBittorrent.PiecesBar ??= (() => { if (vals.width > 0) obj.setPieces(vals.pieces); else - setTimeout(() => { checkForParent(obj.id); }, 1); + setTimeout(() => { checkForParent(obj.id); }); return obj; } @@ -258,7 +258,7 @@ window.qBittorrent.PiecesBar ??= (() => { if (!obj) return; if (!obj.parentNode) - return setTimeout(() => { checkForParent(id); }, 1); + return setTimeout(() => { checkForParent(id); }, 100); obj.refresh(); } diff --git a/src/webui/www/private/scripts/progressbar.js b/src/webui/www/private/scripts/progressbar.js index cda2b0090..9344c4cc8 100644 --- a/src/webui/www/private/scripts/progressbar.js +++ b/src/webui/www/private/scripts/progressbar.js @@ -104,7 +104,7 @@ window.qBittorrent.ProgressBar ??= (() => { if (vals.width) obj.setValue(vals.value); else - setTimeout('ProgressBar_checkForParent("' + obj.id + '")', 1); + setTimeout('ProgressBar_checkForParent("' + obj.id + '")'); return obj; } }); @@ -144,7 +144,7 @@ window.qBittorrent.ProgressBar ??= (() => { if (!obj) return; if (!obj.parentNode) - return setTimeout('ProgressBar_checkForParent("' + id + '")', 1); + return setTimeout('ProgressBar_checkForParent("' + id + '")', 100); obj.setStyle("width", "100%"); const w = obj.offsetWidth; obj.vals.dark.setStyle("width", w);