fix: add CORS header to music-light; remove debug logging
fetch() from file:// was blocked by missing Access-Control-Allow-Origin on the music-light server. Both color and album art now work. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
parent
8e8bccebe8
commit
235cbc4ab8
2 changed files with 2 additions and 10 deletions
|
|
@ -1067,12 +1067,8 @@ function fetchTheme() {
|
|||
if (d.rgb) applyTheme(d.rgb);
|
||||
if (d.art_url && d.art_url !== lastArtUrl) {
|
||||
lastArtUrl = d.art_url;
|
||||
const artSrc = 'file:///tmp/skeledance_art.jpg?' + Date.now();
|
||||
const artImg = document.getElementById('albumArtImg');
|
||||
console.log('setting art src:', artSrc, 'img el:', !!artImg, 'container opacity:', document.getElementById('albumArt').style.opacity);
|
||||
artImg.onerror = e => console.log('art img error:', e.type, artImg.src);
|
||||
artImg.onload = () => console.log('art img loaded OK, naturalSize:', artImg.naturalWidth, artImg.naturalHeight);
|
||||
artImg.src = artSrc;
|
||||
document.getElementById('albumArtImg').src =
|
||||
'file:///tmp/skeledance_art.jpg?' + Date.now();
|
||||
}
|
||||
})
|
||||
.catch(() => {});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue