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 queueString = length ? `(${index + 1} / ${length}) ` : '';
|
||||
const title = length
|
||||
? `${statusString}${queueString}${currentSong?.name} — ${currentSong?.artistName}`
|
||||
? currentSong?.artistName
|
||||
? `${statusString}${queueString}${currentSong?.name} — ${currentSong?.artistName}`
|
||||
: `${statusString}${queueString}${currentSong?.name}`
|
||||
: 'Feishin';
|
||||
document.title = title;
|
||||
|
||||
|
|
Reference in a new issue