Custom plugin for Reveal.js to avoid screen going to spleep during active presentations
Simply include RevealCaffeine
plugin and it will automatically activate on presentation start if Screen Wake Lock API is supported by the browser.
Reveal.initialize({
// ...
plugins: [
// ...,
RevealCaffeine,
],
});
⚠️ NOTE: The Wake Lock will be released when the presentation is paused or the tab is hidden.
You can configure the plugin with the following options:
// ...
plugins: [ /* ... */ ],
caffeine: {
}
MIT