W3C home > Mailing lists > Public > public-device-apis-log@w3.org > March 2019

Re: [wake-lock] Requesting wake locks from Workers (#156)

From: Reilly Grant via GitHub <sysbot+gh@w3.org>
Date: Mon, 18 Mar 2019 17:37:28 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-474024040-1552930644-sysbot+gh@w3.org>
I see no harm in adding a `requestPermission()` function that is a wrapper around the algorithm from the permissions spec. It should be able to take a wake lock type as a parameter so either be a static function on `WakeLock` with extra parameters or inherit the parameters from the `WakeLock` that is provided as `this`.

-- 
GitHub Notification of comment by reillyeon
Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/156#issuecomment-474024040 using your GitHub account
Received on Monday, 18 March 2019 17:37:30 UTC

This archive was generated by hypermail 2.3.1 : Monday, 18 March 2019 17:37:31 UTC