Files
patrick kettner 2a3e3d43f8 add chrome.power/keep awake as an api sample (#1060)
* add chrome.power/keep awake as an api sample
* support localized file info for extension samples

Co-authored-by: Oliver Dunk <oliverdunk@google.com>
2024-01-16 07:48:03 -05:00

686 B

chrome.power

This extension demonstrates the chrome.power API by allowing users to override their system's power management features.

Overview

The extension adds a popup that cycles different states when clicked. It will go though a mode that prevents the display from dimming or going to sleep, a mode that keeps the system awake but allows the screen to dim/go to sleep, and a mode that uses the system's default.

Running this extension

  1. Clone this repository.
  2. Load this directory in Chrome as an unpacked extension.
  3. Pin the extension and click the action button.