1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2026-03-09 22:35:45 +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 else
getURI = function getURI(path) 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 { try {
init(); init();
} }
@@ -157,6 +157,7 @@ function init() {
require(global, "prefs"); require(global, "prefs");
require(global, "services"); require(global, "services");
Cu.import("resource://gre/modules/Services.jsm", global);
services.subscriptLoader.loadSubScript( services.subscriptLoader.loadSubScript(
url("defaults/preferences/dactyl.js"), url("defaults/preferences/dactyl.js"),