WebUI: Use classlist property to set cell class in trackers table

This commit is contained in:
skomerko 2025-02-13 20:33:28 +01:00
commit 7f0134108a

View file

@ -2058,7 +2058,11 @@ window.qBittorrent.DynamicTable ??= (() => {
break; 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.textContent = status;
td.title = status; td.title = status;
}; };