Fix:Back button closes ebook #709

This commit is contained in:
advplyr 2023-06-04 15:38:26 -05:00
parent 410648e316
commit 2643e98fc0
2 changed files with 12 additions and 0 deletions

View file

@ -202,6 +202,9 @@ export default ({ store, app }, inject) => {
if (store.state.playerIsFullscreen) {
eventBus.$emit('minimize-player')
}
if (store.state.showReader) {
eventBus.$emit('close-ebook')
}
next()
})
}
@ -212,6 +215,10 @@ export default ({ store, app }, inject) => {
eventBus.$emit('close-modal')
return
}
if (store.state.showReader) {
eventBus.$emit('close-ebook')
return
}
if (store.state.playerIsFullscreen) {
eventBus.$emit('minimize-player')
return