A music player that connects to your cloud/distributed storage.
0
fork

Configure Feed

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

fix: last.fm facet

+10 -2
+10 -2
src/facets/misc/scrobble/last.fm/index.inline.js
··· 37 37 const orchestrator = await foundation.orchestrator.scrobbleAudio(); 38 38 39 39 /** @type {import("~/components/supplement/last.fm/element.js").CLASS | null} */ 40 - const lastFm = configurator.querySelector("ds-lastfm-scrobbler"); 41 - if (!lastFm) throw new Error("Last.fm scrobbler element not found"); 40 + let lastFm = configurator.querySelector("ds-lastfm-scrobbler"); 41 + if (!lastFm) { 42 + const { default: LastFmScrobbler } = await import( 43 + "~/components/supplement/last.fm/element.js" 44 + ); 45 + 46 + lastFm = new LastFmScrobbler(); 47 + lastFm.setAttribute("group", foundation.GROUP); 48 + configurator.append(lastFm); 49 + } 42 50 43 51 // const creds = loadCredentials(); 44 52 // if (creds) {