Closed Staijn1 closed 1 year ago
Implement the screen wake lock API to prevent mobile phones to go to sleep when on the visualizer page
Example code:
let wakeLock = null; async function lockHandler() { wakeLock = await navigator.wakeLock.request("screen"); } async function releaseHandler() { await wakeLock.release(); wakeLock = null; }
Implement the screen wake lock API to prevent mobile phones to go to sleep when on the visualizer page