Removed unused radio-status from JS.
This commit is contained in:
parent
865bdd7eca
commit
696bcb9e89
@ -4,13 +4,10 @@ function updateRadioStatus() {
|
|||||||
fetch("/status")
|
fetch("/status")
|
||||||
.then(r => r.json())
|
.then(r => r.json())
|
||||||
.then(r => {
|
.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-song").textContent = r.song;
|
||||||
$("radio-listeners").textContent = r.listeners;
|
$("radio-listeners").textContent = r.listeners;
|
||||||
$("radio-listener-peak").textContent = r.listener_peak;
|
$("radio-listener-peak").textContent = r.listener_peak;
|
||||||
}).catch(() => {
|
}).catch(() => {
|
||||||
$("radio-status").textContent = "Radio is offline.";
|
|
||||||
$("radio-song").textContent = "";
|
$("radio-song").textContent = "";
|
||||||
$("radio-listeners").textContent =
|
$("radio-listeners").textContent =
|
||||||
$("radio-listener-peak").textContent = "0";
|
$("radio-listener-peak").textContent = "0";
|
||||||
|
Loading…
Reference in New Issue
Block a user