fix: genre shuffle/play no longer navigates away from genre page
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
1 parent
89aeeb7421
commit
a8f56a9bc6
1 file changed
-2
@@ -220,7 +220,6 @@ async function playGenre(genre) {
|
|||||||
if (!songs.length) return;
|
if (!songs.length) return;
|
||||||
const shuffled = [...songs].sort(() => Math.random() - 0.5);
|
const shuffled = [...songs].sort(() => Math.random() - 0.5);
|
||||||
playQueue(shuffled, 0);
|
playQueue(shuffled, 0);
|
||||||
navigate('now-playing');
|
|
||||||
} catch {}
|
} catch {}
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -248,7 +247,6 @@ async function loadGenreDetail(g) {
|
|||||||
document.getElementById('btn-play-genre').onclick = () => {
|
document.getElementById('btn-play-genre').onclick = () => {
|
||||||
const shuffled = [...songs].sort(() => Math.random() - 0.5);
|
const shuffled = [...songs].sort(() => Math.random() - 0.5);
|
||||||
playQueue(shuffled, 0);
|
playQueue(shuffled, 0);
|
||||||
navigate('now-playing');
|
|
||||||
};
|
};
|
||||||
|
|
||||||
list.innerHTML = '';
|
list.innerHTML = '';
|
||||||
|
|||||||
Reference in new issue
Block a user