aboutsummaryrefslogtreecommitdiffstats
path: root/bootstrap.js
diff options
context:
space:
mode:
authorNik Nyby <nikolas@gnu.org>2015-06-23 19:36:32 -0400
committerNik Nyby <nikolas@gnu.org>2015-10-22 21:34:56 -0400
commit16903513a8ea4241cfe084ab9a07fe2285a2f525 (patch)
tree0fad6951679d6d58d76ba26f5ccaeadbaefffe96 /bootstrap.js
parente69daa447d3dcb76dce669293f1d468606b88bf6 (diff)
downloadlibrejsxul-16903513a8ea4241cfe084ab9a07fe2285a2f525.tar.lz
librejsxul-16903513a8ea4241cfe084ab9a07fe2285a2f525.tar.xz
librejsxul-16903513a8ea4241cfe084ab9a07fe2285a2f525.zip
random jpm stuff
* removed addon-sdk git submodule
Diffstat (limited to 'bootstrap.js')
-rw-r--r--bootstrap.js11
1 files changed, 11 insertions, 0 deletions
diff --git a/bootstrap.js b/bootstrap.js
new file mode 100644
index 0000000..4866564
--- /dev/null
+++ b/bootstrap.js
@@ -0,0 +1,11 @@
+/* This Source Code Form is subject to the terms of the Mozilla Public
+ * License, v. 2.0. If a copy of the MPL was not distributed with this
+ * file, You can obtain one at http://mozilla.org/MPL/2.0/. */
+"use strict";
+
+const { utils: Cu } = Components;
+const rootURI = __SCRIPT_URI_SPEC__.replace("bootstrap.js", "");
+const COMMONJS_URI = "resource://gre/modules/commonjs";
+const { require } = Cu.import(COMMONJS_URI + "/toolkit/require.js", {});
+const { Bootstrap } = require(COMMONJS_URI + "/sdk/addon/bootstrap.js");
+const { startup, shutdown, install, uninstall } = new Bootstrap(rootURI);