Index: bootstrap.js.tmpl |
=================================================================== |
--- a/bootstrap.js.tmpl |
+++ b/bootstrap.js.tmpl |
@@ -16,17 +16,20 @@ let XMLHttpRequest = Components.Construc |
let addonData = null; |
function startup(params, reason) |
{ |
addonData = params; |
{%- if hasChromeRequires %} |
Services.obs.addObserver(RequireObserver, "{{metadata.get('general', 'basename')}}-require", true); |
- onShutdown.add(function() Services.obs.removeObserver(RequireObserver, "{{metadata.get('general', 'basename')}}-require")); |
+ onShutdown.add(function() |
+ { |
+ Services.obs.removeObserver(RequireObserver, "{{metadata.get('general', 'basename')}}-require"); |
+ }); |
{%- set hasShutdownHandlers = True %} |
{%- endif %} |
require("main"); |
} |
function shutdown(params, reason) |
{ |