alpha
Login
or
Join now
tokono.ma
/
diffuse-applets
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Experiment to rebuild Diffuse using web applets.
Star
0
Fork
0
Atom
Configure Feed
Issues
Pull Requests
Commits
Tags
Feed URL
Select the types of activity you want to include in your feed.
Overview
Issues
Pulls
Pipelines
fix: artwork removal timeout
author
Steven Vandevelde
date
11 months ago
(Jul 2, 2025, 5:27 PM +0200)
commit
447793e6
447793e6d27a81f9349a1fc30f5a95ece458e65c
parent
df302db1
df302db1830d402f378b3c4d968fa3846384a33e
+4
-6
1 changed file
Expand all
Collapse all
Unified
Split
src
pages
constituent
blur
artwork-controller
_applet.astro
+4
-6
src/pages/constituent/blur/artwork-controller/_applet.astro
Reviewed
···
500
500
501
501
const currTrack = activeTrack();
502
502
const currCacheId = currTrack ? await trackArtworkCacheId(currTrack) : undefined;
503
503
-
if (cacheId === currCacheId)
504
504
-
try {
505
505
-
setArtwork(art);
506
506
-
} catch (err) {}
503
503
+
if (cacheId === currCacheId) setArtwork(art);
507
504
}
508
505
509
506
////////////////////////////////////////////
···
535
532
if (art.length === 0) {
536
533
showcase.querySelectorAll("img").forEach((node) => {
537
534
node.style.opacity = "0";
538
538
-
timeouts[hash] = setTimeout(() => node.remove(), 1000);
535
535
+
const hash = node.getAttribute("data-hash");
536
536
+
if (hash) timeouts[hash] = setTimeout(() => node.remove(), 1000);
539
537
});
540
538
return;
541
539
}
···
574
572
console.log(o);
575
573
576
574
setArtworkColor(color.rgba);
577
577
-
setArtworkLightMode(o > 170);
575
575
+
setArtworkLightMode(o > 165);
578
576
bg.style.backgroundColor = color.rgba;
579
577
main.style.backgroundColor = color.rgba;
580
578
img.style.opacity = "1";