runtime.reload()
Reloads the extension.
Reloads the extension.
If there are any pending updates for the extension, that it has deferred by listening to runtime.onUpdateAvailable, then they will be applied on reload.
Syntax
browser.runtime.reload()
Parameters
None.
Examples
Reload the extension when the user clicks a browser action's icon:
browser.browserAction.onClicked.addListener((tab) => {
browser.runtime.reload();
});
Browser compatibility
[!NOTE] This API is based on Chromium's
chrome.runtimeAPI. This documentation is derived fromruntime.jsonin the Chromium code.