diff --git a/index.html b/index.html
index 50e2d0c..47ae491 100644
--- a/index.html
+++ b/index.html
@@ -162,11 +162,21 @@
});
}
+ // Show installation instructions only if accessed via browser
+ if (window.matchMedia('(display-mode: browser)').matches) {
+ document.getElementById('install-instructions').style.display = 'block';
+ }
+
// Hide installation instructions once installed as standalone PWA
window.addEventListener('beforeinstallprompt', (event) => {
event.preventDefault(); // Prevent default browser prompt
document.getElementById('install-instructions').style.display = 'none';
});
+
+ // Check if launched from home screen and hide instructions
+ if (window.matchMedia('(display-mode: standalone)').matches) {
+ document.getElementById('install-instructions').style.display = 'none';
+ }