1
0
mirror of https://github.com/gryf/pentadactyl-pm.git synced 2025-12-28 19:32:28 +01:00

Bug 718255 yay.

This commit is contained in:
Kris Maglione
2012-02-14 20:30:53 -05:00
parent 9262965aa9
commit df6d85ca3c

View File

@@ -26,7 +26,8 @@ var Prefs = Module("prefs", XPCOM([Ci.nsIObserver, Ci.nsISupportsWeakReference])
this._prefContexts = [];
this.branch = services.pref[defaults ? "getDefaultBranch" : "getBranch"](branch || "");
this.branch instanceof Ci.nsIPrefBranch2;
if ("nsIPrefBranch2" in Ci)
this.branch instanceof Ci.nsIPrefBranch2;
this.defaults = defaults ? this : this.constructor(branch, true);