ok

Mini Shell

Direktori : /proc/self/root/home2/selectio/www/wedding-info-new/assets/js/
Upload File :
Current File : //proc/self/root/home2/selectio/www/wedding-info-new/assets/js/homescreen-popup.js

/*==========================
 add to home screen popup js
 ==========================*/
 let deferredPrompt;

 window.addEventListener('beforeinstallprompt', (e) => {
   deferredPrompt = e;
 });
 
 const installApp = document.getElementById('installApp');
 
 installApp.addEventListener('click', async () => {
   if (deferredPrompt !== null) {
     deferredPrompt.prompt();
     const { outcome } = await deferredPrompt.userChoice;
     if (outcome === 'accepted') {
       deferredPrompt = null;
     }
   }
 });
 

Zerion Mini Shell 1.0