pwa testing
This commit is contained in:
parent
a070bb7d4e
commit
c5251ef446
14
index.html
14
index.html
|
|
@ -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 -->
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue