Re: [whatwg] Proposal: Wake Lock API

On Tue, Aug 19, 2014 at 11:07 AM, Jonas Sicking <jonas@sicking.cc> wrote:
> On Tue, Aug 19, 2014 at 5:35 AM, Mounir Lamouri <mounir@lamouri.fr> wrote:
>> How would you handle feature detection with this design?
>
> This is a good question. I don't have a better solution than adding
> separate DisplayWakeLock() and SystemWakeLock() classes.

Which, as others have noted, are what we want to do anyway, beyond the
feature-testing angle.  Different WakeLocks can grow different methods
down the line.

~TJ

Received on Tuesday, 19 August 2014 20:28:29 UTC