Skip to content

Commit 0a77d59

Browse files
- CHG: Experimenting with install prompt.
1 parent 1d604d3 commit 0a77d59

1 file changed

Lines changed: 0 additions & 6 deletions

File tree

src/App.vue

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -553,13 +553,7 @@ export default {
553553
}
554554
},
555555
created: function () {
556-
let deferredPrompt
557-
558556
window.addEventListener('beforeinstallprompt', (e) => {
559-
// Prevent the mini-infobar from appearing on mobile
560-
e.preventDefault()
561-
// Stash the event so it can be triggered later.
562-
deferredPrompt = e
563557
// Optionally, send analytics event that PWA install promo was shown.
564558
alert(`'beforeinstallprompt' event was fired.`)
565559
})

0 commit comments

Comments
 (0)