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

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