1
0

Removed unused radio-status from JS.

This commit is contained in:
Alexander Andreev 2023-08-22 03:40:48 +04:00
parent 865bdd7eca
commit 696bcb9e89
Signed by: Arav
GPG Key ID: D22A817D95815393

View File

@ -4,13 +4,10 @@ function updateRadioStatus() {
fetch("/status")
.then(r => r.json())
.then(r => {
$("radio-status").innerHTML =
`On-air since <time datetime="${r.server_start_iso8601}">${r.server_start_date}</time>`;
$("radio-song").textContent = r.song;
$("radio-listeners").textContent = r.listeners;
$("radio-listener-peak").textContent = r.listener_peak;
}).catch(() => {
$("radio-status").textContent = "Radio is offline.";
$("radio-song").textContent = "";
$("radio-listeners").textContent =
$("radio-listener-peak").textContent = "0";