mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-12-24 12:49:38 +00:00
Fix:Chapter page navigating away while playing chapter does not stop audio #945
This commit is contained in:
parent
ac57b2b867
commit
40e999fcae
1 changed files with 3 additions and 1 deletions
|
|
@ -256,7 +256,6 @@ export default {
|
|||
console.log('Chapter already playing', this.isLoadingChapter, this.isPlayingChapter)
|
||||
if (this.isLoadingChapter) return
|
||||
if (this.isPlayingChapter) {
|
||||
console.log('Destroying chapter')
|
||||
this.destroyAudioEl()
|
||||
return
|
||||
}
|
||||
|
|
@ -427,6 +426,9 @@ export default {
|
|||
}
|
||||
]
|
||||
}
|
||||
},
|
||||
beforeDestroy() {
|
||||
this.destroyAudioEl()
|
||||
}
|
||||
}
|
||||
</script>
|
||||
Loading…
Add table
Add a link
Reference in a new issue