mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-02 23:44:14 +01:00
[bootstrap] Fix running from an xpi on Gecko 2.
This commit is contained in:
3
common/bootstrap.js
vendored
3
common/bootstrap.js
vendored
@@ -64,7 +64,7 @@ function startup(data, reason) {
|
||||
}
|
||||
else
|
||||
getURI = function getURI(path)
|
||||
Services.io.newURI("jar:" + Services.io.newFileURI(file).spec + "!" + path);
|
||||
Services.io.newURI("jar:" + Services.io.newFileURI(basePath).spec + "!/" + path, null, null);
|
||||
try {
|
||||
init();
|
||||
}
|
||||
@@ -157,6 +157,7 @@ function init() {
|
||||
|
||||
require(global, "prefs");
|
||||
require(global, "services");
|
||||
Cu.import("resource://gre/modules/Services.jsm", global);
|
||||
|
||||
services.subscriptLoader.loadSubScript(
|
||||
url("defaults/preferences/dactyl.js"),
|
||||
|
||||
Reference in New Issue
Block a user