mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-07 04:20:12 +02:00
Fix 'undefined' in window title when song has no artist name (#402)
This commit is contained in:
@@ -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 New Issue
Block a user