Experiment to rebuild Diffuse using web applets.
0
fork

Configure Feed

Select the types of activity you want to include in your feed.

fix: artwork removal timeout

+4 -6
+4 -6
src/pages/constituent/blur/artwork-controller/_applet.astro
··· 500 500 501 501 const currTrack = activeTrack(); 502 502 const currCacheId = currTrack ? await trackArtworkCacheId(currTrack) : undefined; 503 - if (cacheId === currCacheId) 504 - try { 505 - setArtwork(art); 506 - } catch (err) {} 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 - timeouts[hash] = setTimeout(() => node.remove(), 1000); 535 + const hash = node.getAttribute("data-hash"); 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 - setArtworkLightMode(o > 170); 575 + setArtworkLightMode(o > 165); 578 576 bg.style.backgroundColor = color.rgba; 579 577 main.style.backgroundColor = color.rgba; 580 578 img.style.opacity = "1";