WebUI: prefer arrow function in callbacks

This commit is contained in:
Chocobo1
2024-05-27 22:57:28 +08:00
committed by sledgehammer999
parent 1ef21bc2b7
commit a19d623ead
32 changed files with 215 additions and 214 deletions

View File

@@ -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();
}