debugging PWA

This commit is contained in:
Tobi 2024-04-09 10:33:04 +02:00
parent 569ce42487
commit 5e2d392e8e

View file

@ -191,11 +191,11 @@
document.getElementById('installButton').style.display = 'none';
}
// Show installation instructions only if app is not already installed
window.addEventListener('beforeinstallprompt', (event) => {
event.preventDefault();
// Show installation instructions only if accessed via browser
if (!window.matchMedia('(display-mode: standalone)').matches) {
document.getElementById('install-instructions').style.display = 'block';
});
document.getElementById('installButton').style.display = 'block';
}
</script>
</body>
</html>