Skip to content

Commit

Permalink
Class names are different then id's
Browse files Browse the repository at this point in the history
  • Loading branch information
Lioncat6 committed Nov 4, 2024
1 parent 85c77d6 commit 706b23b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/artist.js
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ async function fetchSpotifyArtists(artists) {
const spotifyIconsHtml = allUrls.map(url =>
`<a href="${url}" target="_blank"><img src="../assets/images/Spotify_icon.svg" alt="Spotify" class="spIcon"></a>`
).join('');
document.getElementById("spURLContainer").innerHTML = spotifyIconsHtml;
document.getElementByClassName("spURLContainer")[0].innerHTML = spotifyIconsHtml;
}

async function fetchSpotifyArtist(artist) {
Expand Down

0 comments on commit 706b23b

Please sign in to comment.