mirror of
https://github.com/myronblair/jarvis
synced 2026-06-30 17:50:23 -05:00
feat: kiosk auto-starts voice mode and blocks sleep — isolated patches only
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user