mirror of
https://github.com/antebudimir/feishin.git
synced 2026-01-01 18:33:33 +00:00
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 statusString = playerStatus === PlayerStatus.PAUSED ? '(Paused) ' : '';
|
||||||
const queueString = length ? `(${index + 1} / ${length}) ` : '';
|
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;
|
document.title = title;
|
||||||
|
|
||||||
const [max, setMax] = useState(false);
|
const [max, setMax] = useState(false);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue