richtr / NoSleep.js

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

Wakelock always active #162

Open pelord opened 1 month ago

pelord commented 1 month ago

Expected Behavior

If wakelock is released, the device fall asleep. If wakelock is active, the device do not fall asleep.

Actual Behavior

When wakelock is released, the device do not fall asleep. When wakelock is active, the device do not fall asleep.

How Do We Reproduce?

Visit https://richtr.github.io/NoSleep.js/example/ and test it without click on the button.