Fix console errors
This commit is contained in:
parent
5cc90ea368
commit
6ea2b0488d
@ -156,7 +156,6 @@ class Settings {
|
|||||||
try {
|
try {
|
||||||
updateFn(this.active, this.getDefaultSettings());
|
updateFn(this.active, this.getDefaultSettings());
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
console.log("!!!!", e)
|
|
||||||
this.logger.log('error', 'settings', '[Settings::applySettingsPatches] Failed to execute update function. Keeping settings object as-is. Error:', e);
|
this.logger.log('error', 'settings', '[Settings::applySettingsPatches] Failed to execute update function. Keeping settings object as-is. Error:', e);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -134,7 +134,6 @@ class CommsServer {
|
|||||||
}
|
}
|
||||||
|
|
||||||
subscribe(command, callback) {
|
subscribe(command, callback) {
|
||||||
console.log("subscribing to command:", command, "with callback", callback)
|
|
||||||
if (!this.commands[command]) {
|
if (!this.commands[command]) {
|
||||||
this.commands[command] = [callback];
|
this.commands[command] = [callback];
|
||||||
} else {
|
} else {
|
||||||
@ -253,7 +252,6 @@ class CommsServer {
|
|||||||
|
|
||||||
|
|
||||||
async execCmd(message, portOrSender, sendResponse) {
|
async execCmd(message, portOrSender, sendResponse) {
|
||||||
console.log("got a command to exec:", message.cmd, message, this.commands[message.cmd], this.commands)
|
|
||||||
this.logger.log(
|
this.logger.log(
|
||||||
'info', 'comms', '[CommsServer.js::execCmd] Received message', message,
|
'info', 'comms', '[CommsServer.js::execCmd] Received message', message,
|
||||||
". Port/sender:", portOrSender, "sendResponse:", sendResponse, "\nThere is ", this.commands[message.cmd]?.length ?? 0,
|
". Port/sender:", portOrSender, "sendResponse:", sendResponse, "\nThere is ", this.commands[message.cmd]?.length ?? 0,
|
||||||
|
@ -237,8 +237,6 @@ class UWServer {
|
|||||||
|
|
||||||
const ctab = await this.getCurrentTab();
|
const ctab = await this.getCurrentTab();
|
||||||
|
|
||||||
console.log('Current tab:', ctab);
|
|
||||||
|
|
||||||
if (!ctab || !ctab.id) {
|
if (!ctab || !ctab.id) {
|
||||||
return {
|
return {
|
||||||
host: 'INVALID SITE',
|
host: 'INVALID SITE',
|
||||||
|
@ -107,8 +107,6 @@ class UwUi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
this.comms = new CommsClient('content-ui-port', this.logger, this.commsHandlers);
|
this.comms = new CommsClient('content-ui-port', this.logger, this.commsHandlers);
|
||||||
|
|
||||||
console.log("UI INIT COMPLETE ——————————————————————");
|
|
||||||
}
|
}
|
||||||
|
|
||||||
initVue() {
|
initVue() {
|
||||||
@ -159,7 +157,6 @@ class UwUi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async initLoggerUi() {
|
async initLoggerUi() {
|
||||||
console.log("CREATING UI");
|
|
||||||
const random = Math.round(Math.random() * 69420);
|
const random = Math.round(Math.random() * 69420);
|
||||||
const uwid = `uw-ui-root-${random}`;
|
const uwid = `uw-ui-root-${random}`;
|
||||||
|
|
||||||
@ -188,7 +185,6 @@ class UwUi {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async showLogger() {
|
async showLogger() {
|
||||||
console.log("SHOWING LOGGER!")
|
|
||||||
if (!this.loggerUiInitiated) {
|
if (!this.loggerUiInitiated) {
|
||||||
await this.initLoggerUi();
|
await this.initLoggerUi();
|
||||||
}
|
}
|
||||||
|
@ -60,9 +60,9 @@ class UW {
|
|||||||
}
|
}
|
||||||
|
|
||||||
async init(){
|
async init(){
|
||||||
// if (Debug.debug) {
|
if (Debug.debug) {
|
||||||
console.log("[uw::main] loading configuration ...");
|
console.log("[uw::main] loading configuration ...");
|
||||||
// }
|
}
|
||||||
|
|
||||||
// logger init is the first thing that needs to run
|
// logger init is the first thing that needs to run
|
||||||
try {
|
try {
|
||||||
|
Loading…
Reference in New Issue
Block a user