diff options
Diffstat (limited to 'contact_finder.js')
-rw-r--r-- | contact_finder.js | 38 |
1 files changed, 1 insertions, 37 deletions
diff --git a/contact_finder.js b/contact_finder.js index 90f0108..48f9c27 100644 --- a/contact_finder.js +++ b/contact_finder.js @@ -289,45 +289,9 @@ function main(){ new_debug_button("Complain to website",handler); } -// See main_background.js -var webex; -var myPort; -function set_webex(){ - if(typeof(browser) == "object"){ - webex = browser; - } - if(typeof(chrome) == "object"){ - webex = chrome; - } -} -set_webex(); -var myPort = webex.runtime.connect({name:"contact_finder"}); +var myPort = browser.runtime.connect({name:"contact_finder"}); myPort.onMessage.addListener(function(m) { prefs = m; main(); }); - - - - - - - - - - - - - - - - - - - - - - - - |