runtime.openOptionsPage()

If your add-on has defined an options page, open it.
 

If your add-on does not define an options page, or the browser failed to create one for some other reason, runtime.lastError will be set.

Syntax

browser.runtime.openOptionsPage(
  function() {...} // optional function
)

Parameters

callbackOptional
function. Called when the options page has been created successfully, or after an error has occurred and runtime.lastError has been set.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?48.0Yes33
Firefox
Basic supportNo

Examples

Example add-ons

Acknowledgements

This API is based on Chromium's chrome.runtime API. This documentation is derived from runtime.json in the Chromium code.

Document Tags and Contributors

 Contributors to this page: wbamberg, kmaglione
 Last updated by: wbamberg,