Got my hands to this file and moved $ fun coutside. ...What I was thinking back then?...
This commit is contained in:
parent
17fbfe997f
commit
906968b06c
@ -1,6 +1,6 @@
|
||||
function updateRadioStatus() {
|
||||
const $ = id => document.getElementById(id);
|
||||
function $(id) { return document.getElementById(id); }
|
||||
|
||||
function updateRadioStatus() {
|
||||
fetch("/stats")
|
||||
.then(r => r.json())
|
||||
.then(radio => {
|
||||
@ -18,8 +18,6 @@ function updateRadioStatus() {
|
||||
}
|
||||
|
||||
function updateLastPlayedSong() {
|
||||
const $ = id => document.getElementById(id);
|
||||
|
||||
fetch('/lastsong')
|
||||
.then(r => r.json())
|
||||
.then(last_played => {
|
||||
|
Loading…
Reference in New Issue
Block a user