mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-23 16:58:06 -06:00
WebUI: Use native function for selecting elements by ID
This commit is contained in:
@@ -251,7 +251,7 @@ window.qBittorrent.PiecesBar ??= (() => {
|
||||
}
|
||||
|
||||
const checkForParent = (id) => {
|
||||
const obj = $(id);
|
||||
const obj = document.getElementById(id);
|
||||
if (!obj)
|
||||
return;
|
||||
if (!obj.parentNode)
|
||||
|
||||
Reference in New Issue
Block a user