Skip to content
This repository has been archived by the owner on Jan 17, 2023. It is now read-only.

Commit

Permalink
Shutdown the embedded webExtension when bootstrap is asked to shutdown (
Browse files Browse the repository at this point in the history
  • Loading branch information
ianb authored and jaredhirsch committed Apr 19, 2017
1 parent 2f92593 commit 9a23339
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions addon/bootstrap.js
Original file line number Diff line number Diff line change
Expand Up @@ -76,6 +76,13 @@ function startup(data, reason) { // eslint-disable-line no-unused-vars

function shutdown(data, reason) { // eslint-disable-line no-unused-vars
prefObserver.unregister();
const webExtension = LegacyExtensionsUtils.getEmbeddedExtensionFor({
id: ADDON_ID,
resourceURI: addonResourceURI
});
if (webExtension.started) {
stop(webExtension);
}
}

function install(data, reason) {} // eslint-disable-line no-unused-vars
Expand Down

0 comments on commit 9a23339

Please sign in to comment.