remove colon
This commit is contained in:
parent
7a0c905815
commit
55c41ead60
@ -13,12 +13,12 @@ async function getLatestSong() {
|
|||||||
if (lsResponse.ok) {
|
if (lsResponse.ok) {
|
||||||
const latestSongJSON = await lsResponse.json();
|
const latestSongJSON = await lsResponse.json();
|
||||||
if (!latestSongJSON.track["@attr"]) {
|
if (!latestSongJSON.track["@attr"]) {
|
||||||
albumlabel.textContent = "Last Listen:";
|
albumlabel.textContent = "Last Listen";
|
||||||
} else if (latestSongJSON.track["@attr"].nowplaying) {
|
} else if (latestSongJSON.track["@attr"].nowplaying) {
|
||||||
albumlabel.textContent = "Now Playing:";
|
albumlabel.textContent = "Now Playing";
|
||||||
} else {
|
} else {
|
||||||
console.warn("[WARN] Invalid now playing status.");
|
console.warn("[WARN] Invalid now playing status.");
|
||||||
albumlabel.textContent = "Last Listen:";
|
albumlabel.textContent = "Last Listen";
|
||||||
}
|
}
|
||||||
|
|
||||||
albumart.src = latestSongJSON.track.image[1]["#text"] || "/img/placeholder.png";
|
albumart.src = latestSongJSON.track.image[1]["#text"] || "/img/placeholder.png";
|
||||||
|
Loading…
x
Reference in New Issue
Block a user