pwa testing

This commit is contained in:
slweeb 2023-02-07 19:33:07 -05:00
parent a070bb7d4e
commit c5251ef446
1 changed files with 6 additions and 8 deletions

View File

@ -117,12 +117,6 @@
}); });
} }
} }
let deferredPrompt;
window.addEventListener('beforeinstallprompt', (e) => {
e.preventDefault();
deferredPrompt = e;
//showInAppInstallPromotion();
});
</script> </script>
<script> <script>
@ -11084,9 +11078,13 @@ Cancer, Landmine, Grenade, Smoke Grenade">?</span> <select onchange="setSetting(
</div> </div>
<script> <script>
if (deferredPrompt) { let deferredPrompt;
window.addEventListener('beforeinstallprompt', (e) => {
e.preventDefault();
deferredPrompt = e;
document.getElementById("install-button").style.display = "inline-block"; document.getElementById("install-button").style.display = "inline-block";
} //showInAppInstallPromotion();
});
</script> </script>
<!-- i like having this but ublock blocks these things anyway --> <!-- i like having this but ublock blocks these things anyway -->