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

fix: Don't attempt to create object url when not blob

+2 -2
+1 -1
src/Javascript/UI/artwork.ts
··· 32 32 // 🛠️ 33 33 34 34 35 - export function albumCover(coverKey: string): Promise<Blob | null> { 35 + export function albumCover(coverKey: string): Promise<Blob | "TRIED" | null> { 36 36 return db().getItem(`coverCache.${coverKey}`) 37 37 } 38 38
+1 -1
src/Javascript/UI/audio.ts
··· 213 213 if (coverPrep) { 214 214 const blob = await albumCover(coverPrep.cacheKey) 215 215 216 - artwork = blob 216 + artwork = blob && typeof blob !== "string" 217 217 ? [{ 218 218 src: URL.createObjectURL(blob), 219 219 type: blob.type