mirror of
https://github.com/gryf/pentadactyl-pm.git
synced 2026-03-02 10:55:47 +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
|
// TODO: add telephone number support
|
||||||
list: function (filter, newMail) {
|
list: function (filter, newMail) {
|
||||||
let addresses = [];
|
let addresses = [];
|
||||||
let dirs = abManager.directories;
|
let dirs = services.abManager.directories;
|
||||||
let lowerFilter = filter.toLowerCase();
|
let lowerFilter = filter.toLowerCase();
|
||||||
|
|
||||||
while (dirs.hasMoreElements()) {
|
while (dirs.hasMoreElements()) {
|
||||||
@@ -146,6 +146,9 @@ const Addressbook = Module("addressbook", {
|
|||||||
|
|
||||||
commandline.open(":", "contact " + address + " " + displayName, modes.EX);
|
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