upgrade http iamges to https
This commit is contained in:
parent
6460a513d7
commit
35b4b16e69
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue