[web] Fix page "Now Playing" progress update when pausing

This commit is contained in:
Alain Nussbaumer 2024-12-31 10:39:03 +01:00
parent cdbce17731
commit e891b5d24c

View File

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