try2
This commit is contained in:
parent
5f57bb6e84
commit
524bc8c3c6
|
@ -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({
|
||||||
|
|
Loading…
Reference in a new issue