mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-10 04:30:25 +02:00
cleanup notification text
This commit is contained in:
@@ -108,11 +108,11 @@ export const useScrobble = () => {
|
|||||||
) {
|
) {
|
||||||
const artists =
|
const artists =
|
||||||
currentSong.artists?.length > 0
|
currentSong.artists?.length > 0
|
||||||
? currentSong.artists.map((artist) => artist.name).join(', ')
|
? currentSong.artists.map((artist) => artist.name).join(' · ')
|
||||||
: currentSong.artistName;
|
: currentSong.artistName;
|
||||||
|
|
||||||
new Notification(`Now playing ${currentSong.name}`, {
|
new Notification(`${currentSong.name}`, {
|
||||||
body: `by ${artists} on ${currentSong.album}`,
|
body: `${artists}\n${currentSong.album}`,
|
||||||
icon: currentSong.imageUrl || undefined,
|
icon: currentSong.imageUrl || undefined,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user