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() {
|
function $(id) { return document.getElementById(id); }
|
||||||
const $ = id => document.getElementById(id);
|
|
||||||
|
|
||||||
|
function updateRadioStatus() {
|
||||||
fetch("/stats")
|
fetch("/stats")
|
||||||
.then(r => r.json())
|
.then(r => r.json())
|
||||||
.then(radio => {
|
.then(radio => {
|
||||||
@ -18,8 +18,6 @@ function updateRadioStatus() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function updateLastPlayedSong() {
|
function updateLastPlayedSong() {
|
||||||
const $ = id => document.getElementById(id);
|
|
||||||
|
|
||||||
fetch('/lastsong')
|
fetch('/lastsong')
|
||||||
.then(r => r.json())
|
.then(r => r.json())
|
||||||
.then(last_played => {
|
.then(last_played => {
|
||||||
|
Loading…
Reference in New Issue
Block a user