1
0
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:
Kris Maglione
2010-12-29 01:49:03 -05:00
parent eef79f2ba8
commit 27cc988fff

3
common/bootstrap.js vendored
View File

@@ -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"),