Skip to content

Commit

Permalink
Merge pull request #1832 from chme/fix/now-playing-pause
Browse files Browse the repository at this point in the history
fix: Now Playing does not stop play progress updates when pausing
  • Loading branch information
hacketiwack authored Dec 31, 2024
2 parents 3c85e54 + fb067b5 commit fab5ef5
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 fab5ef5

Please sign in to comment.