Add artist name to window title
This commit is contained in:
parent
818f155993
commit
e77efcf836
1 changed files with 3 additions and 1 deletions
|
@ -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);
|
||||
|
|
Reference in a new issue