feat: kiosk auto-starts voice mode and blocks sleep — isolated patches only

This commit is contained in:
2026-06-21 05:17:55 +00:00
parent a6d4365f16
commit 6f0459be85
3 changed files with 10 additions and 6 deletions
+3
View File
@@ -1784,6 +1784,9 @@ async function toggleKiosk() {
try { _wakeLock = await navigator.wakeLock.request("screen"); } catch(e) {}
}
document.body.classList.add("kiosk-mode");
if (typeof wakeFromSleep === "function" && isAsleep) wakeFromSleep();
if (typeof enterVoiceMode === "function" && !voiceMode) enterVoiceMode();
if (!isListening) { isListening = true; updateMicBtn(); try { recognition && recognition.start(); } catch(_) {} }
if (btn) { btn.textContent = "⧞ EXIT"; btn.style.color = "var(--cyan)"; }
} else {
const ex = document.exitFullscreen || document.webkitExitFullscreen || document.mozCancelFullScreen || document.msExitFullscreen;