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:
ltadeu6 2026-06-07 10:40:37 -03:00
parent 8e8bccebe8
commit 235cbc4ab8
No known key found for this signature in database
GPG key ID: FB9FDAB6B6F3418D
2 changed files with 2 additions and 10 deletions

View file

@ -24,10 +24,6 @@ WallpaperItem {
request.accepted = true
}
onJavaScriptConsoleMessage: function(level, message, lineNumber, sourceID) {
var logDs = Qt.createQmlObject('import org.kde.plasma.plasma5support as P5S; P5S.DataSource { engine: "executable" }', webView)
logDs.connectSource("echo '[skeledance] " + message.replace(/'/g, '') + " (line " + lineNumber + ")' >> /tmp/skeledance_console.log")
}
}
// Start CAVA on load