1
0
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:
Doug Kearns
2011-02-24 21:25:22 +11:00
parent 6606be55bb
commit d88d88e0bd

View File

@@ -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);
}
});