fix: title not changing on next song

This commit is contained in:
2025-05-31 18:15:30 +02:00
parent a0ea3b6575
commit 83b29b7e17

View File

@@ -195,6 +195,7 @@
appState.currentSong = appState.songQueue[0];
appState.duration = appState.currentSong.duration;
setMediaSession();
document.title = `${appState.currentSong.title} - ${appState.currentSong.artists}`;
} else {
appState.error = 'Failed to load songs.';
}