mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-02-27 03:15:47 +01:00
Fix running from an XPI. Closes issue #848.
This commit is contained in:
3
common/bootstrap.js
vendored
3
common/bootstrap.js
vendored
@@ -233,6 +233,8 @@ function init() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
JSMLoader.config = JSON.parse(httpGet("resource://dactyl-local/config.json").responseText);
|
||||||
|
|
||||||
bootstrap = module(BOOTSTRAP);
|
bootstrap = module(BOOTSTRAP);
|
||||||
bootstrap.require = JSMLoader.load("base").require;
|
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") + "!" +
|
Services.io.newURI("jar:" + Services.io.newFileURI(basePath).spec.replace(/!/g, "%21") + "!" +
|
||||||
"/" + path, null, null);
|
"/" + path, null, null);
|
||||||
|
|
||||||
JSMLoader.config = JSON.parse(httpGet(getURI("config.json")).responseText);
|
|
||||||
try {
|
try {
|
||||||
init();
|
init();
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user