Fix:Chapter page navigating away while playing chapter does not stop audio #945

This commit is contained in:
advplyr 2022-08-28 15:11:14 -05:00
parent ac57b2b867
commit 40e999fcae

View File

@ -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>