mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +00:00
Merge pull request #1107 from mihawk90/now-playing-reformat
cleanup notification text
This commit is contained in:
commit
be6ec49cfa
1 changed files with 3 additions and 3 deletions
|
|
@ -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,
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue