diff --git a/client/pages/audiobook/_id/chapters.vue b/client/pages/audiobook/_id/chapters.vue index 2b03a7c4..6eabdc4a 100644 --- a/client/pages/audiobook/_id/chapters.vue +++ b/client/pages/audiobook/_id/chapters.vue @@ -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() } } \ No newline at end of file