WebUI: Eliminate redundant DOM element queries

This commit is contained in:
skomerko
2025-04-12 11:53:52 +02:00
parent 0b3bce8993
commit 7b3aa51bb1
3 changed files with 4 additions and 4 deletions

View File

@@ -131,7 +131,7 @@ window.qBittorrent.Download ??= (() => {
}
};
$(window).addEventListener("load", async () => {
window.addEventListener("load", async () => {
// user might load this page directly (via browser magnet handler)
// so wait for crucial initialization to complete
await window.parent.qBittorrent.Client.initializeCaches();