Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enable Screen Wake Lock API if possible #239

Closed
yhatt opened this issue Jul 2, 2020 · 0 comments · Fixed by #246
Closed

Enable Screen Wake Lock API if possible #239

yhatt opened this issue Jul 2, 2020 · 0 comments · Fixed by #246
Labels
enhancement New feature or request

Comments

@yhatt
Copy link
Member

yhatt commented Jul 2, 2020

An upcoming Chrome 84 has provided the stable Screen Wake Lock API to prevent device going to sleep. As one of use cases, it is suggested for a web-based presentation app. (https://web.dev/wakelock/#use-cases)

It's a good thing that the HTML slide deck converted by Marp CLI should use this if possible when presenting in fullscreen.

However may not work in the local file and HTTP server mode, the most popular use cases of Marp. According to following condition, Screen Wake Lock API would work only when published the HTML into web.

Like most other powerful web APIs, the Screen Wake Lock API is only available when served over HTTPS.
-- https://web.dev/wakelock/#best-practices

@yhatt yhatt added the enhancement New feature or request label Jul 2, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant