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

Doesn't complain if trying to disable wakeLock when not on #113

Closed igorsantos07 closed 3 years ago

igorsantos07 commented 3 years ago

This PR contains a:

Motivation / Use-Case

Code that runs during app setup might not know if wakelock is on, but will want to make sure it's off :)

Breaking Changes

None

Additional Info

Bonus: got confused with the PR template, as there's actually no tests in the repo :upside_down_face:

richtr commented 3 years ago

Fixed by 7aa6c05928d3be452444d569b6fa4422d08deb50!

igorsantos07 commented 3 years ago

Not sure if you've noticed that wasn't the only change? Whatever.