From 95e0c0a93a82a3243119ad4773df07298efa8ecb Mon Sep 17 00:00:00 2001 From: Greg Shuflin Date: Fri, 24 Feb 2023 00:29:05 -0800 Subject: [PATCH] Remove some console.log statements --- tab_provenance.js | 5 ----- 1 file changed, 5 deletions(-) diff --git a/tab_provenance.js b/tab_provenance.js index 638f115..7851f51 100644 --- a/tab_provenance.js +++ b/tab_provenance.js @@ -23,7 +23,6 @@ browser.menus.onClicked.addListener(async (info, tab) => { const target = { "tabId": tab.id }; try { const url = await browser.sessions.getTabValue(tab.id, "provenance"); - console.log(`URL: ${url}`); const alertMsg = (typeof url === "undefined") ? "No opening url found" : `This tab was opened by: ${url}`; const func = (alertMsg) => { @@ -31,11 +30,7 @@ browser.menus.onClicked.addListener(async (info, tab) => { }; const args = [alertMsg]; const injectionResult = await browser.scripting.executeScript({target, args, func}); - - console.log(injectionResult); - } catch (err) { - console.log(err); await browser.scripting.executeScript({func: () => { alert("Tab not found"); }, target}); return; }