start back button, other random fixes
This commit is contained in:
@@ -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 = [
|
||||
|
||||
Reference in New Issue
Block a user