make ws api simpler

This commit is contained in:
2026-04-15 21:17:50 +02:00
parent 096a2e51e3
commit f31a85a62c
2 changed files with 2 additions and 7 deletions
-4
View File
@@ -284,10 +284,6 @@
const d = msg.data || {};
if(d.track) applyProgressState(d.track);
if(d.dirs) updateDirs(d.dirs);
if(d.rds) {
const rt = (d.rds?.rt) ?? "";
document.getElementById("rds-text").textContent = rt ?? "";
}
} else if (msg.event === "rds") {
const rt = (msg.data?.rt) ?? "";
document.getElementById("rds-text").textContent = rt ?? "";