diff options
Diffstat (limited to 'importAddrBook.js')
-rw-r--r-- | importAddrBook.js | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/importAddrBook.js b/importAddrBook.js index 97f4466..ebbd358 100644 --- a/importAddrBook.js +++ b/importAddrBook.js @@ -168,6 +168,18 @@ document.body.addEventListener("submit", submitHandler, false); + + navigator.mozSetMessageHandler('activity', function(activityRequest) { + var option = activityRequest.source; + + if ((option.name === "view") || (option.name === "open")) { + // Do something to handle the activity + console.log("option.data = " + option.data); +// var URL = document.getElementsByName("URL")[0].value; + + } + }); + }; }()); |