1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-21 11:57:59 +01:00

[bootstrap] Fix for Gecko<2.

--HG--
branch : bootstrapped
This commit is contained in:
Kris Maglione
2010-12-27 00:20:39 -05:00
parent f75d81c57f
commit 0bd5210910
2 changed files with 25 additions and 8 deletions

View File

@@ -113,7 +113,7 @@ Dactyl.prototype = {
contractID: "@mozilla.org/network/protocol;1?name=dactyl",
classID: Components.ID("{9c8f2530-51c8-4d41-b356-319e0b155c44}"),
classDescription: "Dactyl utility protocol",
QueryInterface: XPCOMUtils.generateQI([Ci.nsIProtocolHandler]),
QueryInterface: XPCOMUtils.generateQI([Ci.nsIObserver, Ci.nsIProtocolHandler]),
_xpcom_factory: Factory(Dactyl),
init: function (obj) {
@@ -163,6 +163,19 @@ Dactyl.prototype = {
}
catch (e) {}
return fakeChannel(uri);
},
// FIXME: Belongs elsewhere
_xpcom_categories: [{
category: "profile-after-change",
entry: "m-dactyl"
}],
observe: function (subject, topic, data) {
if (topic === "profile-after-change") {
Cu.import("resource://dactyl/base.jsm");
require(global, "overlay");
}
}
};