mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-30 15:59:16 +02:00
make ws api simpler
This commit is contained in:
@@ -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 ?? "";
|
||||
|
||||
Reference in New Issue
Block a user