Now Playing Fix

This commit is contained in:
Brian Fertig 2026-04-11 13:48:56 -06:00
parent 25d68e1dcb
commit cae84f6966
1 changed files with 5 additions and 0 deletions

View File

@ -313,6 +313,11 @@
setCurrentTrack(e.detail); setCurrentTrack(e.detail);
}); });
// After client-side navigation, restore the reopen button if a queue is active.
window.addEventListener('briTunes:navigate', () => {
if (queue.length > 0) setReopenBtn(true);
});
// Next / Repeat — delegate to actual player bar buttons. // Next / Repeat — delegate to actual player bar buttons.
npPlayPauseBtn.addEventListener('click', () => { npPlayPauseBtn.addEventListener('click', () => {
if (!audio) return; if (!audio) return;