mirror of
https://github.com/owntone/owntone-server.git
synced 2025-01-23 20:53:19 -05:00
[web] Fix page "Now Playing" progress update when pausing
This commit is contained in:
parent
cdbce17731
commit
e891b5d24c
@ -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() {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user