1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-29 06:32:26 +01:00

Fix running from an XPI. Closes issue #848.

This commit is contained in:
Kris Maglione
2012-05-09 10:47:29 -04:00
parent 526ee3f63f
commit 453496432e

3
common/bootstrap.js vendored
View File

@@ -233,6 +233,8 @@ function init() {
}
}
JSMLoader.config = JSON.parse(httpGet("resource://dactyl-local/config.json").responseText);
bootstrap = module(BOOTSTRAP);
bootstrap.require = JSMLoader.load("base").require;
@@ -346,7 +348,6 @@ function startup(data, reason) {
Services.io.newURI("jar:" + Services.io.newFileURI(basePath).spec.replace(/!/g, "%21") + "!" +
"/" + path, null, null);
JSMLoader.config = JSON.parse(httpGet(getURI("config.json")).responseText);
try {
init();
}