From e49f079eb2fd87b668fd08817d21afd13d1177cb Mon Sep 17 00:00:00 2001 From: evlist Date: Sun, 27 Nov 2022 22:50:47 +0100 Subject: [PATCH] Re-enabling live locks. --- src/index.tsx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/index.tsx b/src/index.tsx index 59c5eea..7c386cf 100644 --- a/src/index.tsx +++ b/src/index.tsx @@ -4,7 +4,7 @@ import { Router, hashIntegration } from '@solidjs/router'; import App from './App'; -/* // See https://stackoverflow.com/questions/71538643/property-wakelock-does-not-exist-on-type-navigator +// See https://stackoverflow.com/questions/71538643/property-wakelock-does-not-exist-on-type-navigator const requestWakeLock = async () => { const anyNav: any = navigator; if ('wakeLock' in navigator) { @@ -30,8 +30,7 @@ const handleVisibilityChange = () => { // See https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API document.addEventListener('visibilitychange', handleVisibilityChange, false); -requestWakeLock(); */ - +requestWakeLock(); render( () => (