- From: Reilly Grant via GitHub <sysbot+gh@w3.org>
- Date: Mon, 29 Apr 2019 16:43:48 +0000
- To: public-device-apis-log@w3.org
The following is equivalent to `lock.abort()` anyways so a separate method is unnecessary to achieve the same effect,
```js
let controller = new AbortController();
controller.abort();
lock.request({ signal: controller.signal });
```
This feels like clicking the "Start" menu to shut down the computer but it works.
--
GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/w3c/wake-lock/pull/183#issuecomment-487654036 using your GitHub account
Received on Monday, 29 April 2019 16:43:50 UTC