richtr / NoSleep.js

Prevent display sleep and enable wake lock in any Android or iOS web browser.
MIT License
2.23k stars 380 forks source link

Add property "enabled" and method "isEnabled()" to get current NoSlee… #109

Closed j-a-n closed 3 years ago

j-a-n commented 3 years ago

…p status

This PR contains a new feature. This change allows to get the status of NoSleep. Especially useful if acquiring the lock or playing the video fails.