From 2076034b37557f1a8c65699240025c6c04807da4 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?C=C3=A9drix?= Date: Fri, 27 Mar 2026 07:46:34 +0100 Subject: [PATCH] =?UTF-8?q?installTrigger=20d=C3=A9pr=C3=A9ci=C3=A9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/index.html | 2 +- public/script.js | 10 +++++----- public/sw.js | 2 +- 3 files changed, 7 insertions(+), 7 deletions(-) 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',