upgrade http iamges to https

This commit is contained in:
Penelope Gwen 2025-11-09 14:03:24 -08:00
parent 6460a513d7
commit 35b4b16e69

View file

@ -53,7 +53,7 @@ function renderTrack(nowPlaying, track, cover, timestamp) {
if (cover) { if (cover) {
const coverUrl = cover.images?.[0]?.thumbnails?.[500] || ""; const coverUrl = cover.images?.[0]?.thumbnails?.[500] || "";
displayCover.setAttribute("alt", `Album artwork for ${title} by ${artist}`); displayCover.setAttribute("alt", `Album artwork for ${title} by ${artist}`);
displayCover.setAttribute("src", coverUrl); displayCover.setAttribute("src", coverUrl.replace("http://", "https://"));
displayCover.hidden = false; displayCover.hidden = false;
} else { } else {
displayCover.hidden = true; displayCover.hidden = true;