[#259] Proper support for the progressive webapp #262

Merged
blacklight merged 9 commits from 259-pwa into master 2023-05-20 02:42:34 +02:00
1 changed files with 8 additions and 0 deletions
Showing only changes of commit 14d6924338 - Show all commits

View File

@ -68,6 +68,14 @@ export default {
this.initConfig()
},
beforeMount() {
window.addEventListener('beforeinstallprompt', (e) => {
e.preventDefault()
if (confirm('Would you like to install the application for more features?'))
e.prompt()
})
},
mounted() {
bus.onNotification(this.onNotification)
},