We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1f2f4ef commit 62bc74fCopy full SHA for 62bc74f
src/components/InstallPWA.astro
@@ -29,11 +29,12 @@
29
30
<script>
31
function showInstallPrompt() {
32
- const installBanner = document.getElementById('install-pwa');
+ const installBanner = document.getElementById('install-pwa') as HTMLElement;
33
installBanner.classList.remove('hidden');
34
}
35
36
-document.getElementById('install-btn').addEventListener('click', () => {
+ const installBtn = document.getElementById('install-btn') as HTMLElement;
37
+ installBtn.addEventListener('click', () => {
38
if (deferredPrompt) {
39
deferredPrompt.prompt();
40
deferredPrompt.userChoice.then((choiceResult: any) => {
0 commit comments