FIX: update queue list when track changes
This commit is contained in:
parent
057244e73e
commit
b523d351ea
1 changed files with 5 additions and 0 deletions
|
|
@ -430,6 +430,11 @@ export class Player {
|
||||||
currentTrack && item.dataset.trackId == currentTrack.id
|
currentTrack && item.dataset.trackId == currentTrack.id
|
||||||
);
|
);
|
||||||
});
|
});
|
||||||
|
|
||||||
|
document.querySelectorAll('.queue-track-item').forEach(item => {
|
||||||
|
const index = parseInt(item.dataset.queueIndex);
|
||||||
|
item.classList.toggle('playing', index === this.currentQueueIndex);
|
||||||
|
});
|
||||||
}
|
}
|
||||||
|
|
||||||
updateMediaSession(track) {
|
updateMediaSession(track) {
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue