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:
HoneyandClaude Sonnet 4.6 committed 2026-05-22 21:48:14 +02:00
1 parent 89aeeb7421
commit a8f56a9bc6
1 file changed
-2
-2
View File
@@ -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 = '';