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 native wake lock API support #95

Closed tomayac closed 4 years ago

tomayac commented 4 years ago

This PR contains a:

Motivation / Use-Case

See discussion in https://github.com/richtr/NoSleep.js/issues/83.

Additional Info

Currently the build is pretty wasteful, since the videos are bundled no matter what. It would probably be a good idea to switch to dynamic import()s in the future.

tomayac commented 4 years ago

(Supersedes https://github.com/richtr/NoSleep.js/pull/64 by @knee-cola.)

tomayac commented 4 years ago

(minor nit: I will be removing the defunct package-lock.json additions in a subsequent commit on master before releasing as 0.11.0.)

Duh, sorry! I was messing around with dependencies but in the end decided to leave it as is, and forgot to reset to the previous state.