start back button, other random fixes

This commit is contained in:
2024-01-19 02:08:52 +01:00
parent 4ee4b697cb
commit 76fda12604
9 changed files with 57 additions and 19 deletions

View File

@@ -12,18 +12,6 @@ if (browser) {
favoritedStreams.subscribe((val) => {
localStorage.setItem('favoritedStreams', JSON.stringify(Array.from(val)));
});
if ('mediaSession' in navigator) {
currentSongIndex.subscribe((val) => {
if (val != null) {
const song = get(currentStream).tracks[val];
navigator.mediaSession.metadata = new MediaMetadata({
artist: song[1],
title: song[2]
});
}
});
}
}
export const tagList = [