summaryrefslogtreecommitdiff
path: root/teledactyl
diff options
context:
space:
mode:
authorDoug Kearns <dougkearns@gmail.com>2011-02-24 21:25:22 +1100
committerDoug Kearns <dougkearns@gmail.com>2011-02-24 21:25:22 +1100
commitd88d88e0bd36c79c3dca437a9714e244a03f570d (patch)
treebffb9708a7e6d210c61888e7f5cfe05e0c3d6cd4 /teledactyl
parent6606be55bb3a6b6fc8fb0f265c61a4676ae5d6ed (diff)
downloadpentadactyl-d88d88e0bd36c79c3dca437a9714e244a03f570d.tar.gz
Add the address book manager to the services cache.
Fixes :contacts.
Diffstat (limited to 'teledactyl')
-rw-r--r--teledactyl/content/addressbook.js5
1 files changed, 4 insertions, 1 deletions
diff --git a/teledactyl/content/addressbook.js b/teledactyl/content/addressbook.js
index adf8e29f..e89ad05e 100644
--- a/teledactyl/content/addressbook.js
+++ b/teledactyl/content/addressbook.js
@@ -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);
}
});