bootstrap.js 593 B

123456789101112
  1. /* This Source Code Form is subject to the terms of the Mozilla Public
  2. * License, v. 2.0. If a copy of the MPL was not distributed with this
  3. * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
  4. "use strict";
  5. const { utils: Cu } = Components;
  6. const rootURI = __SCRIPT_URI_SPEC__.replace("bootstrap.js", "");
  7. const COMMONJS_URI = "resource://gre/modules/commonjs";
  8. const { require } = Cu.import(COMMONJS_URI + "/toolkit/require.js", {});
  9. const { Bootstrap } = require(COMMONJS_URI + "/sdk/addon/bootstrap.js");
  10. var { startup, shutdown, install, uninstall } = new Bootstrap(rootURI);