diff --git a/webextension/js/popup.js b/webextension/js/popup.js index 1dca2a4..ad952a6 100644 --- a/webextension/js/popup.js +++ b/webextension/js/popup.js @@ -5,9 +5,6 @@ const CONTAINER_HIDE_SRC = "/img/container-hide.svg"; const CONTAINER_UNHIDE_SRC = "/img/container-unhide.svg"; -// TODO: Let's set it to false before releasing!!! -const DEBUG = true; - // List of panels const P_ONBOARDING_1 = "onboarding1"; const P_ONBOARDING_2 = "onboarding2"; @@ -17,12 +14,6 @@ const P_CONTAINER_INFO = "containerInfo"; const P_CONTAINER_EDIT = "containerEdit"; const P_CONTAINER_DELETE = "containerDelete"; -function log(...args) { - if (DEBUG) { - console.log.call(console, ...args); // eslint-disable-line no-console - } -} - // This object controls all the panels, identities and many other things. const Logic = { _identities: [], @@ -204,7 +195,6 @@ Logic.registerPanel(P_CONTAINERS_LIST, { const fragment = document.createDocumentFragment(); Logic.identities().forEach(identity => { - log("identities.forEach"); const tr = document.createElement("tr"); fragment.appendChild(tr); tr.classList.add("container-panel-row", "clickable"); @@ -314,7 +304,6 @@ Logic.registerPanel(P_CONTAINER_INFO, { method: "getTabs", userContextId: identity.userContextId, }).then(tabs => { - log("browser.runtime.sendMessage getTabs, tabs: ", tabs); // For each one, let's create a new line. const fragment = document.createDocumentFragment(); for (let tab of tabs) { // eslint-disable-line prefer-const