mirror of
https://github.com/qbittorrent/qBittorrent.git
synced 2026-01-03 22:22:33 -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;
|
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;
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user