Screen Wake Lock API provides a way to prevent devices from dimming or locking the screen when the app needs to keep running.
https://nectar.website/demo/web-apis/screen-wake-lock/arrow-up-right
You can refer to the code present in /partials/web-apis/screen-wake-lock.html file and use it accordingly.
/partials/web-apis/screen-wake-lock.html
https://developer.mozilla.org/en-US/docs/Web/API/Screen_Wake_Lock_APIarrow-up-right
Last updated 3 years ago