From 696bcb9e8983f7cdc855e7cb86e44954d938ab61 Mon Sep 17 00:00:00 2001 From: "Alexander \"Arav\" Andreev" Date: Tue, 22 Aug 2023 03:40:48 +0400 Subject: [PATCH] Removed unused radio-status from JS. --- web/assets/js/main.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/web/assets/js/main.js b/web/assets/js/main.js index a57d89b..907d840 100644 --- a/web/assets/js/main.js +++ b/web/assets/js/main.js @@ -4,13 +4,10 @@ function updateRadioStatus() { fetch("/status") .then(r => r.json()) .then(r => { - $("radio-status").innerHTML = - `On-air since `; $("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";