Skip to content

Commit

Permalink
don't show artist if undifined
Browse files Browse the repository at this point in the history
  • Loading branch information
Joshua2504 committed Jun 10, 2024
1 parent 99d1f90 commit 8cb532b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit 8cb532b

Please sign in to comment.