diff --git a/index.html b/index.html index d597c789..fc2ce2c2 100644 --- a/index.html +++ b/index.html @@ -117,6 +117,12 @@ }); } } + let deferredPrompt; + window.addEventListener('beforeinstallprompt', (e) => { + e.preventDefault(); + deferredPrompt = e; + //showInAppInstallPromotion(); + });