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; }