Re-enabling live locks.

This commit is contained in:
Eric van der Vlist 2022-11-27 22:50:47 +01:00
parent 12cfa9337a
commit e49f079eb2
1 changed files with 2 additions and 3 deletions

View File

@ -4,7 +4,7 @@ import { Router, hashIntegration } from '@solidjs/router';
import App from './App'; 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 requestWakeLock = async () => {
const anyNav: any = navigator; const anyNav: any = navigator;
if ('wakeLock' in navigator) { if ('wakeLock' in navigator) {
@ -30,8 +30,7 @@ const handleVisibilityChange = () => {
// See https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API // See https://developer.mozilla.org/en-US/docs/Web/API/Page_Visibility_API
document.addEventListener('visibilitychange', handleVisibilityChange, false); document.addEventListener('visibilitychange', handleVisibilityChange, false);
requestWakeLock(); */ requestWakeLock();
render( render(
() => ( () => (