refactor(web): migrate 4 open-coded cover URL sites to coverUrl() helper (C1 small-win)
This commit is contained in:
@@ -1,3 +1,4 @@
|
||||
import { coverUrl } from '$lib/media/covers';
|
||||
import {
|
||||
player,
|
||||
togglePlay,
|
||||
@@ -21,7 +22,7 @@ export function useMediaSession(): void {
|
||||
artist: t.artist_name,
|
||||
album: t.album_title,
|
||||
artwork: [{
|
||||
src: `/api/albums/${t.album_id}/cover`,
|
||||
src: coverUrl(t.album_id),
|
||||
sizes: '512x512',
|
||||
type: 'image/jpeg'
|
||||
}]
|
||||
|
||||
Reference in New Issue
Block a user