mirror of
https://github.com/advplyr/audiobookshelf-app.git
synced 2026-08-08 21:08:43 +02:00
Move appUrlOpen listener to plugin and listen for eventBus event
This commit is contained in:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user