From db0013b57cce91cd516e0d9ecfa6f758f3d14d03 Mon Sep 17 00:00:00 2001 From: Yuchen Pei Date: Tue, 27 Sep 2022 09:38:22 +1000 Subject: disable contactfinder tests by default It tends to time out. Also moved injectContactFinder --- main_background.js | 21 ++++++++++----------- 1 file changed, 10 insertions(+), 11 deletions(-) (limited to 'main_background.js') diff --git a/main_background.js b/main_background.js index c983f2f..76cc8c4 100644 --- a/main_background.js +++ b/main_background.js @@ -321,6 +321,16 @@ async function connected(p) { }); } +/** +* Loads the contact finder on the given tab ID. +*/ +async function injectContactFinder(tabId) { + await Promise.all([ + browser.tabs.insertCSS(tabId, { file: '/content/overlay.css', cssOrigin: 'user' }), + browser.tabs.executeScript(tabId, { file: '/content/contactFinder.js' }), + ]); +} + /** * The callback for tab closings. * @@ -890,15 +900,4 @@ async function init_addon() { } } - -/** -* Loads the contact finder on the given tab ID. -*/ -async function injectContactFinder(tabId) { - await Promise.all([ - browser.tabs.insertCSS(tabId, { file: '/content/overlay.css', cssOrigin: 'user' }), - browser.tabs.executeScript(tabId, { file: '/content/contactFinder.js' }), - ]); -} - init_addon(); -- cgit v1.2.3