const sentinel = await navigator.wakeLock.request("screen");
console.log(sentinel.released); // Logs "false"
sentinel.onrelease = () => {
console.log(sentinel.released); // Logs "true"
};
await sentinel.release();WakeLockSentinel: released property / notebook
WakeLockSentinel: released property
Runnable notebook: every JavaScript, HTML and CSS example on this page executes in a sandboxed local frame. Nothing leaves the browser.