Fix console errors

This commit is contained in:
Tamius Han 2020-03-08 18:43:53 +01:00
parent 5cc90ea368
commit 6ea2b0488d
5 changed files with 2 additions and 11 deletions

View File

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

View File

@ -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,

View File

@ -237,8 +237,6 @@ class UWServer {
const ctab = await this.getCurrentTab();
console.log('Current tab:', ctab);
if (!ctab || !ctab.id) {
return {
host: 'INVALID SITE',

View File

@ -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();
}

View File

@ -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 {