From 15985a6bfa4b481cf47d1832de1b3936c443d50a Mon Sep 17 00:00:00 2001 From: Bruno Charest Date: Fri, 19 Jun 2026 23:59:53 -0400 Subject: [PATCH] =?UTF-8?q?fix:=20=C3=A9chapper=20l'apostrophe=20dans=20'J?= =?UTF-8?q?e=20t'=C3=A9coute'=20(guillemets=20doubles=20JS)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Le guillemet simple français cassait la string JavaScript. Corrigé avec des guillemets doubles pour la chaîne contenant l'apostrophe. --- bot_direct.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/bot_direct.py b/bot_direct.py index 34042b5..9d5fd20 100644 --- a/bot_direct.py +++ b/bot_direct.py @@ -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'}