From 6ea2b0488dff25e7fdb8b7a26b8853bcbae4d8c3 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Sun, 8 Mar 2020 18:43:53 +0100 Subject: [PATCH] Fix console errors --- src/ext/lib/Settings.js | 1 - src/ext/lib/comms/CommsServer.js | 2 -- src/ext/uw-bg.js | 2 -- src/ext/uw-ui.js | 4 ---- src/ext/uw.js | 4 ++-- 5 files changed, 2 insertions(+), 11 deletions(-) diff --git a/src/ext/lib/Settings.js b/src/ext/lib/Settings.js index a145867..76a0f8d 100644 --- a/src/ext/lib/Settings.js +++ b/src/ext/lib/Settings.js @@ -156,7 +156,6 @@ class Settings { try { updateFn(this.active, this.getDefaultSettings()); } catch (e) { - console.log("!!!!", e) this.logger.log('error', 'settings', '[Settings::applySettingsPatches] Failed to execute update function. Keeping settings object as-is. Error:', e); } } diff --git a/src/ext/lib/comms/CommsServer.js b/src/ext/lib/comms/CommsServer.js index fc4197e..3d15c00 100644 --- a/src/ext/lib/comms/CommsServer.js +++ b/src/ext/lib/comms/CommsServer.js @@ -134,7 +134,6 @@ class CommsServer { } subscribe(command, callback) { - console.log("subscribing to command:", command, "with callback", callback) if (!this.commands[command]) { this.commands[command] = [callback]; } else { @@ -253,7 +252,6 @@ class CommsServer { async execCmd(message, portOrSender, sendResponse) { - console.log("got a command to exec:", message.cmd, message, this.commands[message.cmd], this.commands) this.logger.log( 'info', 'comms', '[CommsServer.js::execCmd] Received message', message, ". Port/sender:", portOrSender, "sendResponse:", sendResponse, "\nThere is ", this.commands[message.cmd]?.length ?? 0, diff --git a/src/ext/uw-bg.js b/src/ext/uw-bg.js index 4790ae0..0fa8680 100644 --- a/src/ext/uw-bg.js +++ b/src/ext/uw-bg.js @@ -237,8 +237,6 @@ class UWServer { const ctab = await this.getCurrentTab(); - console.log('Current tab:', ctab); - if (!ctab || !ctab.id) { return { host: 'INVALID SITE', diff --git a/src/ext/uw-ui.js b/src/ext/uw-ui.js index c6b5229..e543b1b 100644 --- a/src/ext/uw-ui.js +++ b/src/ext/uw-ui.js @@ -107,8 +107,6 @@ class UwUi { } this.comms = new CommsClient('content-ui-port', this.logger, this.commsHandlers); - - console.log("UI INIT COMPLETE ——————————————————————"); } initVue() { @@ -159,7 +157,6 @@ class UwUi { } async initLoggerUi() { - console.log("CREATING UI"); const random = Math.round(Math.random() * 69420); const uwid = `uw-ui-root-${random}`; @@ -188,7 +185,6 @@ class UwUi { } async showLogger() { - console.log("SHOWING LOGGER!") if (!this.loggerUiInitiated) { await this.initLoggerUi(); } diff --git a/src/ext/uw.js b/src/ext/uw.js index f1ca0bb..3e8a121 100644 --- a/src/ext/uw.js +++ b/src/ext/uw.js @@ -60,9 +60,9 @@ class UW { } async init(){ - // if (Debug.debug) { + if (Debug.debug) { console.log("[uw::main] loading configuration ..."); - // } + } // logger init is the first thing that needs to run try {