fix: échapper l'apostrophe dans 'Je t'écoute' (guillemets doubles JS)

Le guillemet simple français cassait la string JavaScript.
Corrigé avec des guillemets doubles pour la chaîne contenant l'apostrophe.
This commit is contained in:
2026-06-19 23:59:53 -04:00
parent 2065af3aeb
commit 15985a6bfa
+1 -1
View File
@@ -151,7 +151,7 @@ if(SpeechRecognition){
function toggleMic(){
if(!rec){alert('Reconnaissance vocale non supportée sur ce navigateur');return}
if(listening){rec.stop();return}
listening=true;mic.classList.add('listening');mic.textContent='🔴';s.textContent='🎤 Je t\'écoute...';
listening=true;mic.classList.add('listening');mic.textContent='🔴';s.textContent="🎤 Je t'écoute...";
try{rec.start()}catch(e){stopListening()}
}
function stopListening(){listening=false;mic.classList.remove('listening');mic.textContent='🎤';if(s.textContent.includes('écoute'))s.textContent='🟢 Connecté — JARVIS v3 prêt'}