Re-enabling live locks.
This commit is contained in:
parent
12cfa9337a
commit
e49f079eb2
|
@ -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(
|
||||
() => (
|
||||
|
|
Loading…
Reference in New Issue