fix: Now Playing does not stop play progress updates when pausing

This commit is contained in:
Christian Meffert 2024-12-31 07:04:52 +00:00
parent 3c85e540b9
commit fb067b5cdc

View File

@ -145,15 +145,15 @@ export default {
},
watch: {
playerStore() {
'playerStore.state'(newState) {
if (this.interval_id > 0) {
window.clearTimeout(this.interval_id)
this.interval_id = 0
}
if (this.playerStore.state === 'play') {
if (newState === 'play') {
this.interval_id = window.setInterval(this.tick, INTERVAL)
}
}
},
},
created() {