if no song is playing

This commit is contained in:
2025-11-24 00:13:38 +00:00
parent fe41f17f72
commit 71ee369852

View File

@@ -20,6 +20,11 @@
"https://www.adam-french.co.uk/api/spotify", "https://www.adam-french.co.uk/api/spotify",
); );
const data = await res.json(); const data = await res.json();
if (this.playing == false) {
this.album_image = "/img/Untitled.png";
return;
}
this.album_image = data.album_image; this.album_image = data.album_image;
this.artist_name = data.artist_name; this.artist_name = data.artist_name;
this.song_name = data.song_name; this.song_name = data.song_name;