mirror of
https://github.com/jeffvli/feishin.git
synced 2026-05-09 20:29:36 +02:00
Add artist name to window title
This commit is contained in:
@@ -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);
|
||||||
|
|||||||
Reference in New Issue
Block a user