diff --git a/public_html/assets/js/jarvis-app.js b/public_html/assets/js/jarvis-app.js index fcdec9d..b71b683 100644 --- a/public_html/assets/js/jarvis-app.js +++ b/public_html/assets/js/jarvis-app.js @@ -1405,6 +1405,7 @@ function enterVoiceMode(source) { } function exitVoiceMode() { + if (document.body.classList.contains('kiosk-mode')) return; voiceMode = false; voiceMuted = false; updateMicBtn(); @@ -1794,6 +1795,7 @@ async function toggleKiosk() { if (ex) ex.call(document).catch(() => {}); if (_wakeLock) { _wakeLock.release().catch(() => {}); _wakeLock = null; } document.body.classList.remove("kiosk-mode"); + if (typeof stopListening === "function") stopListening(); if (btn) { btn.textContent = "⧞ KIOSK"; btn.style.color = ""; } if (!isTablet()) document.body.classList.remove("tablet-mode"); } @@ -1810,6 +1812,7 @@ function _onFsChange() { if (!document.fullscreenElement && !document.webkitFullscreenElement) { if (_wakeLock) { _wakeLock.release().catch(() => {}); _wakeLock = null; } document.body.classList.remove("kiosk-mode"); + if (typeof stopListening === "function") stopListening(); if (btn) { btn.textContent = "⧞ KIOSK"; btn.style.color = ""; } if (!isTablet()) document.body.classList.remove("tablet-mode"); } diff --git a/public_html/index.html b/public_html/index.html index 3771494..3d8b1a3 100644 --- a/public_html/index.html +++ b/public_html/index.html @@ -426,12 +426,12 @@ style="position:fixed;top:-9999px;left:-9999px;width:320px;height:240px"> - - - - - - + + + + + +