From 7ceddde661b337371cd0dadadc065f787fa148bd Mon Sep 17 00:00:00 2001 From: Vitaly Date: Sat, 12 Aug 2023 03:54:19 +0300 Subject: [PATCH] fix incorrect ranges commited --- index.js | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/index.js b/index.js index 8609ef07..d48c26a2 100644 --- a/index.js +++ b/index.js @@ -202,19 +202,6 @@ async function main () { connect(options) }) } -let justHitEscape = false - -const goFullscreen = async (doToggle = false) => { - if (!document.fullscreenElement) { - // todo display a message or repeat? - await document.documentElement.requestFullscreen().catch(() => { }) - // request full keyboard access - //@ts-ignore - navigator.keyboard?.lock?.(['Escape', 'KeyW']) - } else if (doToggle) { - await document.exitFullscreen().catch(() => { }) - } -} async function connect (options) { const debugMenu = hud.shadowRoot.querySelector('#debug-overlay')