W3C home > Mailing lists > Public > public-device-apis-log@w3.org > November 2018

Re: [wake-lock] Need maximum screen brightness mode (#129)

From: Marcos Cáceres via GitHub <sysbot+gh@w3.org>
Date: Thu, 22 Nov 2018 21:44:38 +0000
To: public-device-apis-log@w3.org
Message-ID: <issue_comment.created-441124143-1542923077-sysbot+gh@w3.org>
Would what’s already in the spec not work? 

```
navigator.getWakeLock("screen", {fullBrightness: true}).then(wakeLock => {
  var request = wakeLock.createRequest();
  setTimeout(() {
    request.cancel();
  }, 1000);
});



-- 
GitHub Notification of comment by marcoscaceres
Please view or discuss this issue at https://github.com/w3c/wake-lock/issues/129#issuecomment-441124143 using your GitHub account
Received on Thursday, 22 November 2018 21:44:40 UTC

This archive was generated by hypermail 2.3.1 : Thursday, 22 November 2018 21:44:41 UTC