Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
mohamedkhallouq
GitHub Repository: mohamedkhallouq/content
Path: blob/main/files/en-us/mozilla/add-ons/webextensions/api/runtime/reload/index.md
6552 views
---
title: runtime.reload() slug: Mozilla/Add-ons/WebExtensions/API/runtime/reload page-type: webextension-api-function tags: - API - Add-ons - Extensions - Method - Non-standard - Reference - WebExtensions - reload - runtime browser-compat: webextensions.api.runtime.reload
---

{{AddonSidebar()}}

Reloads the extension.

If there are any pending updates for the extension, that it has deferred by listening to {{WebExtAPIRef("runtime.onUpdateAvailable")}}, then they will be applied on reload.

Syntax

browser.runtime.reload()

Parameters

None.

Browser compatibility

{{Compat}}

Examples

Reload the extension when the user clicks a browser action's icon:

browser.browserAction.onClicked.addListener((tab) => { browser.runtime.reload(); });

{{WebExtExamples}}

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