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/. */
6 const { utils: Cu } = Components;
7 const rootURI = __SCRIPT_URI_SPEC__.replace("bootstrap.js", "");
8 const COMMONJS_URI = "resource://gre/modules/commonjs";
9 const { require } = Cu.import(COMMONJS_URI + "/toolkit/require.js", {});
10 const { Bootstrap } = require(COMMONJS_URI + "/sdk/addon/bootstrap.js");
11 const { startup, shutdown, install, uninstall } = new Bootstrap(rootURI);