Enables browser extensions to update the browser theme.
To use this API, an extension must request the "theme" permission in its manifest.json file.
Types
theme.Theme
- Represents the content of a theme.
Functions
theme.update()
- Updates the browser’s theme.
Browser compatibility
Chrome | Edge | Firefox | Firefox for Android | Opera | |
---|---|---|---|---|---|
Theme | No | No | 55 | No | No |
update | No | No | 55 | No | No |
The "Chrome incompatibilities" section is included from https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Chrome_incompatibilities using the WebExtChromeCompat macro.
If you need to update this content, edit https://developer.mozilla.org/en-US/Add-ons/WebExtensions/Chrome_incompatibilities, then shift-refresh this page to see your changes.
Chrome incompatibilities
None.