Skip to content

Commit

Permalink
fix: Now Playing does not stop play progress updates when pausing
Browse files Browse the repository at this point in the history
  • Loading branch information
chme committed Dec 31, 2024
1 parent 3c85e54 commit fb067b5
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions web-src/src/pages/PageNowPlaying.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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() {
Expand Down

0 comments on commit fb067b5

Please sign in to comment.