[wake-lock] Add example usage of onrelease event. (#250)

scheib has just created a new issue for https://github.com/w3c/wake-lock:

== Add example usage of onrelease event. ==
The WakeLockSentinel onrelease event is "used to notify scripts that a given WakeLockSentinel object's handle has been released, either due to the release() method being called or because the wake lock was released by the user agent."

For spec readability it would help to have usage examples.

Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/250 using your GitHub account

Received on Monday, 3 February 2020 20:41:36 UTC