miniplayer: add pause when going on music page
This commit is contained in:
parent
ec6a14c9c0
commit
5544379890
3 changed files with 16 additions and 1 deletions
|
|
@ -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() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue