Fix disconnect in side drawer causing audio playing with player closed #1385

This commit is contained in:
advplyr
2025-11-23 15:16:44 -06:00
parent 38a5e3637d
commit 81e71cd7a2
2 changed files with 15 additions and 2 deletions
+9 -2
View File
@@ -183,11 +183,18 @@ export default {
await this.$hapticsImpact()
await this.logout()
// Redirect to home page
if (this.$route.name !== 'bookshelf') {
this.$router.replace('/bookshelf')
} else {
location.reload()
}
// If player is open and not playing locally, then close the player
if (this.$store.getters['getIsPlayerOpen']) {
this.$eventBus.$emit('close-stream')
}
// Close side drawer
this.show = false
},
touchstart(e) {
this.touchEvent = new TouchEvent(e)