diff --git a/components/app/Appbar.vue b/components/app/Appbar.vue
index ae8fe427..82d907d9 100644
--- a/components/app/Appbar.vue
+++ b/components/app/Appbar.vue
@@ -18,8 +18,8 @@
-
-
cast
+
+ cast
diff --git a/components/app/AudioPlayer.vue b/components/app/AudioPlayer.vue
index b9ac1976..c28ebef4 100644
--- a/components/app/AudioPlayer.vue
+++ b/components/app/AudioPlayer.vue
@@ -634,6 +634,11 @@ export default {
this.$nextTick(this.init)
},
beforeDestroy() {
+ if (this.playbackSession) {
+ console.log('[AudioPlayer] Before destroy closing playback')
+ this.closePlayback()
+ }
+
this.forceCloseDropdownMenu()
document.body.removeEventListener('touchstart', this.touchstart)
document.body.removeEventListener('touchend', this.touchend)
diff --git a/store/index.js b/store/index.js
index 9018b9da..7736312e 100644
--- a/store/index.js
+++ b/store/index.js
@@ -21,9 +21,6 @@ export const state = () => ({
})
export const getters = {
- playerIsOpen: (state) => {
- return state.streamAudiobook
- },
getIsItemStreaming: state => libraryItemId => {
return state.playerLibraryItemId == libraryItemId
},