This commit is contained in:
Soph :3 2024-08-04 14:13:26 +03:00
parent 5f57bb6e84
commit 524bc8c3c6
Signed by: sophie
GPG key ID: EDA5D222A0C270F2

View file

@ -85,8 +85,7 @@ export function LastfmWidget(monitor = 0) {
css: "font-size: 25px;", css: "font-size: 25px;",
}); });
Utils.interval( setInterval(
5000,
() => { () => {
lastFM.getRecentTracks("yourfriendoss").then((z) => { lastFM.getRecentTracks("yourfriendoss").then((z) => {
if(!z) return; if(!z) return;
@ -102,7 +101,7 @@ export function LastfmWidget(monitor = 0) {
imagebox.setCss(generateCSS(track.image.at(-1)["#text"])); imagebox.setCss(generateCSS(track.image.at(-1)["#text"]));
}); });
}, },
imagebox 5000
); );
return Widget.Window({ return Widget.Window({