mirror of
https://github.com/Fluffy-Bean/website.git
synced 2025-05-14 08:02:16 +00:00
🦞
This commit is contained in:
parent
557cfa0baf
commit
e73b2b5233
1 changed files with 1 additions and 1 deletions
|
@ -31,7 +31,7 @@ import leg from "../assets/leg.webp";
|
|||
const request = await fetch("https://lastfm-last-played.biancarosa.com.br/Fluffy_Bean_/latest-song");
|
||||
const data = await request.json();
|
||||
|
||||
( document.querySelectorAll(".music-img") as HTMLImageElement[] ).forEach((img) => {
|
||||
( document.querySelectorAll(".music-img") as NodeListOf<HTMLImageElement> ).forEach((img) => {
|
||||
img.src = data["track"]["image"][2]["#text"];
|
||||
});
|
||||
( document.querySelector("#music-title") as HTMLParagraphElement ).innerText = `${data["track"]["name"]}`;
|
||||
|
|
Loading…
Add table
Reference in a new issue