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

Isn't that covered by example 2, which has

```js
navigator.wakeLock.request("screen").then(lock => {
  checkbox.checked = true;

  const listener = (ev) => {
    checkbox.checked = false;
    ev.target.removeEventListener('release', listener);
  };

  lock.addEventListener('release', listener);
});
```
?

-- 
GitHub Notification of comment by rakuco
Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/250#issuecomment-581801928 using your GitHub account

Received on Tuesday, 4 February 2020 08:46:07 UTC