runtime.getPlatformInfo()

Returns information about the current platform.

Syntax

browser.runtime.getPlatformInfo(
  function(platformInfo) {...} // function
)

Parameters

callback
function. Called with resultsThe function is passed the following arguments:
platformInfo
runtime.PlatformInfo.

Browser compatibility

EdgeFirefoxChromeOpera
Basic support?45.0Yes33
Firefox
Basic support48.0

Examples

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
 Last updated by: wbamberg,