mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2025-12-29 03:02:26 +01:00
Undo certain parts from the unfortunate "service" commit, to unbreak Muttator. @Kris: Please try not to
commit unconnected things at once, as it's much harder to revert such commits :( I'll have to revert the service -> Cc/Ci manually now, as I got lots of conflicts in reverting, and if i didn't, i wouldn't want to undo the other parts of that commit (like VIMPERATOR_RUNTIME or the added comments)
This commit is contained in:
@@ -1644,8 +1644,9 @@ function Events() //{{{
|
||||
prefObserver: {
|
||||
register: function ()
|
||||
{
|
||||
this._branch = service["pref"].getBranch("") // better way to monitor all changes?
|
||||
.QueryInterface(Ci.nsIPrefBranch2);
|
||||
const prefService = Cc["@mozilla.org/preferences-service;1"].getService(Ci.nsIPrefService);
|
||||
this._branch = prefService.getBranch(""); // better way to monitor all changes?
|
||||
this._branch.QueryInterface(Ci.nsIPrefBranch2);
|
||||
this._branch.addObserver("", this, false);
|
||||
},
|
||||
|
||||
|
||||
Reference in New Issue
Block a user