mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +00:00
Fix 'undefined' in window title when song has no artist name (#402)
This commit is contained in:
parent
3f9cdab450
commit
a8814d3e8a
1 changed files with 3 additions and 1 deletions
|
|
@ -222,7 +222,9 @@ export const WindowBar = () => {
|
||||||
const statusString = playerStatus === PlayerStatus.PAUSED ? '(Paused) ' : '';
|
const statusString = playerStatus === PlayerStatus.PAUSED ? '(Paused) ' : '';
|
||||||
const queueString = length ? `(${index + 1} / ${length}) ` : '';
|
const queueString = length ? `(${index + 1} / ${length}) ` : '';
|
||||||
const title = length
|
const title = length
|
||||||
? `${statusString}${queueString}${currentSong?.name} — ${currentSong?.artistName}`
|
? currentSong?.artistName
|
||||||
|
? `${statusString}${queueString}${currentSong?.name} — ${currentSong?.artistName}`
|
||||||
|
: `${statusString}${queueString}${currentSong?.name}`
|
||||||
: 'Feishin';
|
: 'Feishin';
|
||||||
document.title = title;
|
document.title = title;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue