From 40e999fcae209e01ac8c5a9a1b721033953faf16 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sun, 28 Aug 2022 15:11:14 -0500 Subject: [PATCH] Fix:Chapter page navigating away while playing chapter does not stop audio #945 --- client/pages/audiobook/_id/chapters.vue | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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