mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-01-04 16:34:11 +01:00
Add the address book manager to the services cache.
Fixes :contacts.
This commit is contained in:
@@ -42,7 +42,7 @@ const Addressbook = Module("addressbook", {
|
||||
// TODO: add telephone number support
|
||||
list: function (filter, newMail) {
|
||||
let addresses = [];
|
||||
let dirs = abManager.directories;
|
||||
let dirs = services.abManager.directories;
|
||||
let lowerFilter = filter.toLowerCase();
|
||||
|
||||
while (dirs.hasMoreElements()) {
|
||||
@@ -146,6 +146,9 @@ const Addressbook = Module("addressbook", {
|
||||
|
||||
commandline.open(":", "contact " + address + " " + displayName, modes.EX);
|
||||
});
|
||||
},
|
||||
services: function initServices(dactyl, modules, window) {
|
||||
services.add("abManager", "@mozilla.org/abmanager;1", Ci.nsIAbManager);
|
||||
}
|
||||
});
|
||||
|
||||
|
||||
Reference in New Issue
Block a user