miniplayer: add pause when going on music page

This commit is contained in:
Agahnim 2026-03-23 13:26:04 +01:00
parent 56079dc0dc
commit 82f4d4513a
3 changed files with 16 additions and 1 deletions

View file

@ -37,6 +37,10 @@
if (miniplayer) {
miniplayer.style.display = isMusicPage ? 'none' : '';
}
if (isMusicPage) {
const audio = document.querySelector('mini-player audio');
if (audio) audio.pause();
}
}
function updateNavState() {