mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2026-07-07 21:35:26 +02:00
Fix:Chapter page navigating away while playing chapter does not stop audio #945
This commit is contained in:
@@ -256,7 +256,6 @@ export default {
|
|||||||
console.log('Chapter already playing', this.isLoadingChapter, this.isPlayingChapter)
|
console.log('Chapter already playing', this.isLoadingChapter, this.isPlayingChapter)
|
||||||
if (this.isLoadingChapter) return
|
if (this.isLoadingChapter) return
|
||||||
if (this.isPlayingChapter) {
|
if (this.isPlayingChapter) {
|
||||||
console.log('Destroying chapter')
|
|
||||||
this.destroyAudioEl()
|
this.destroyAudioEl()
|
||||||
return
|
return
|
||||||
}
|
}
|
||||||
@@ -427,6 +426,9 @@ export default {
|
|||||||
}
|
}
|
||||||
]
|
]
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
beforeDestroy() {
|
||||||
|
this.destroyAudioEl()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
Reference in New Issue
Block a user