mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 00:47:21 -06:00
WebUI: Eliminate redundant DOM element queries
This commit is contained in:
@@ -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();
|
||||
|
||||
Reference in New Issue
Block a user