Skip to content

Instantly share code, notes, and snippets.

@rwaldron
Created November 14, 2013 21:05
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save rwaldron/7474280 to your computer and use it in GitHub Desktop.
Save rwaldron/7474280 to your computer and use it in GitHub Desktop.
diff --git a/apps/sms/js/desktop-only/contacts.js b/apps/sms/js/desktop-only/contacts.js
index 838bfadfa00b34d28198248f2e4c9291a4c3276e..86cea714243ad48823f9f1f25d24fa91db08c570 100644
--- a/apps/sms/js/desktop-only/contacts.js
+++ b/apps/sms/js/desktop-only/contacts.js
@@ -192,6 +192,9 @@
// // Do not use the native API.
navigator.mozContacts = {
+ addEventListener: function(type, handler, capture) {
+ return this;
+ },
find: function(filter) {
// attribute DOMString filterValue; // e.g. 'Tom'
// attribute DOMString filterOp; // e.g. 'contains'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment