diff --git a/public/index.html b/public/index.html index 8d39590..5a16e67 100644 --- a/public/index.html +++ b/public/index.html @@ -16,7 +16,7 @@
- v1.204 + v1.205
diff --git a/public/script.js b/public/script.js index 17fabe3..0772bf8 100644 --- a/public/script.js +++ b/public/script.js @@ -4,7 +4,7 @@ let deferredPrompt; const installBtn = document.getElementById('installBtn'); - const isFirefox = typeof InstallTrigger !== 'undefined'; + const isFirefox = navigator.userAgent.toLowerCase().includes('firefox'); window.addEventListener('beforeinstallprompt', (e) => { // Empêche Chrome d'afficher sa propre mini-barre @@ -29,11 +29,11 @@ }); if (isFirefox && !window.matchMedia('(display-mode: standalone)').matches) { - // On peut par exemple afficher un petit texte dans le header - const infoZone = document.getElementById('app-version'); // On utilise la zone de version + const infoZone = document.getElementById('app-version'); if (infoZone) { - infoZone.innerHTML += "
(Install. non dispo sur Firefox PC)"; - infoZone.style.color = "#ff8800"; // Orange pour attirer l'oeil gentiment + // Message plus pro-actif pour l'utilisateur + infoZone.innerHTML += "
(Utilisez 'Installer' dans le menu Firefox)"; + infoZone.style.color = "#ff8800"; } } diff --git a/public/sw.js b/public/sw.js index 27aac66..efaf25d 100644 --- a/public/sw.js +++ b/public/sw.js @@ -1,4 +1,4 @@ -const CACHE_NAME = 'sb-v1.204'; // Change ce numéro pour forcer une mise à jour globale +const CACHE_NAME = 'sb-v1.205'; // Change ce numéro pour forcer une mise à jour globale const ASSETS = [ './', // Racine './index.html',