mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-19 06:57:24 -06:00
WebUI: prefer arrow function in callbacks
This commit is contained in:
@@ -266,7 +266,7 @@ window.qBittorrent.PiecesBar = (() => {
|
||||
if (!obj)
|
||||
return;
|
||||
if (!obj.parentNode)
|
||||
return setTimeout(function() { checkForParent(id); }, 1);
|
||||
return setTimeout(() => { checkForParent(id); }, 1);
|
||||
|
||||
obj.refresh();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user