Skip to content

Commit 62bc74f

Browse files
committed
Fix astro check errors
1 parent 1f2f4ef commit 62bc74f

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/components/InstallPWA.astro

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -29,11 +29,12 @@
2929

3030
<script>
3131
function showInstallPrompt() {
32-
const installBanner = document.getElementById('install-pwa');
32+
const installBanner = document.getElementById('install-pwa') as HTMLElement;
3333
installBanner.classList.remove('hidden');
3434
}
3535

36-
document.getElementById('install-btn').addEventListener('click', () => {
36+
const installBtn = document.getElementById('install-btn') as HTMLElement;
37+
installBtn.addEventListener('click', () => {
3738
if (deferredPrompt) {
3839
deferredPrompt.prompt();
3940
deferredPrompt.userChoice.then((choiceResult: any) => {

0 commit comments

Comments
 (0)