mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2025-07-09 21:44:41 +02:00
Move appUrlOpen listener to plugin and listen for eventBus event
This commit is contained in:
parent
d613d8954d
commit
737d8f19b3
2 changed files with 38 additions and 32 deletions
|
@ -282,6 +282,14 @@ export default ({ store, app }, inject) => {
|
|||
window.history.back()
|
||||
}
|
||||
})
|
||||
|
||||
/**
|
||||
* @see https://capacitorjs.com/docs/apis/app#addlistenerappurlopen-
|
||||
* Listen for url open events for the app. This handles both custom URL scheme links as well as URLs your app handles
|
||||
*/
|
||||
App.addListener('appUrlOpen', (data) => {
|
||||
eventBus.$emit('url-open', data.url)
|
||||
})
|
||||
}
|
||||
|
||||
export {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue