From 8cb532bbe88b84f9bde401f879eef4070bd29279 Mon Sep 17 00:00:00 2001 From: Joshua Treudler Date: Mon, 10 Jun 2024 12:15:35 +0200 Subject: [PATCH] don't show artist if undifined --- index.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/index.html b/index.html index 1d23ba8..a893d4a 100644 --- a/index.html +++ b/index.html @@ -60,7 +60,7 @@ audioPlayer.play(); document.getElementById("song-name").textContent = songs[index].name; // Display song name document.getElementById("song-description").textContent = songs[index].description; // Display song description - document.getElementById("song-artist").textContent = 'Artist: ' + songs[index].artist; // Display song artist + document.getElementById("song-artist").textContent = songs[index].artist; // Display song artist } function nextSong() {