Add artist name to window title

This commit is contained in:
jeffvli 2023-10-18 20:49:50 -07:00
parent 818f155993
commit e77efcf836

View file

@ -221,7 +221,9 @@ export const WindowBar = () => {
const statusString = playerStatus === PlayerStatus.PAUSED ? '(Paused) ' : '';
const queueString = length ? `(${index + 1} / ${length}) ` : '';
const title = length ? `${statusString}${queueString}${currentSong?.name}` : 'Feishin';
const title = length
? `${statusString}${queueString}${currentSong?.name}${currentSong?.artistName}`
: 'Feishin';
document.title = title;
const [max, setMax] = useState(false);