mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2025-12-31 04:38:04 -06:00
WebUI: Use classlist property to set cell class in trackers table
This commit is contained in:
@@ -2058,7 +2058,11 @@ window.qBittorrent.DynamicTable ??= (() => {
|
||||
break;
|
||||
}
|
||||
|
||||
td.className = statusClass;
|
||||
for (const c of [...td.classList]) {
|
||||
if (c.startsWith("tracker"))
|
||||
td.classList.remove(c);
|
||||
}
|
||||
td.classList.add(statusClass);
|
||||
td.textContent = status;
|
||||
td.title = status;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user