Can't make dom-examples/screen-wake-lock-api work
LuckCky opened this issue Β· comments
Hi!
Thanks for providing this example.
https://github.com/mdn/dom-examples/tree/master/screen-wake-lock-api
Expected Behavior
Button 'turn wake lock on' is active.
Text in the box 'wake lock status' is 'Screen Wake Lock API supported
Current Behavior
Button 'turn wake lock on' is inactive.
Text in the box 'wake lock status' is 'Wake lock is not supported by this browser.'
Possible Solution
Unknown to me
Steps to Reproduce
- Debian 9 server
- nginx/1.10.3
- add three files from repo to /var/www/html
- set up Nginx to serve index.html
- Chrome Version 91.0.4472.114 (Official Build) (x86_64)
- No https (might it be an issue?)
No errors shown, just button is inactive.
How can I make it work as it's working in your demo (https://mdn.github.io/dom-examples/screen-wake-lock-api/)?
Thanks, Thomas, that's my bad, I've missed this in the article.