typo fixes and whitespace/console.log removals

This commit is contained in:
Tamius Han 2020-01-27 23:42:17 +01:00
parent dfabfaad48
commit c62033fb28
3 changed files with 3 additions and 7 deletions

View File

@ -5,7 +5,7 @@
"author": "Tamius Han <tamius.han@gmail.com>",
"scripts": {
"start": "cross-env HMR=true npm run build:dev -- --watch",
"build": "cross-env NODE_ENV=production BROWSER=firefox CHANNEEL=stable webpack --hide-modules",
"build": "cross-env NODE_ENV=production BROWSER=firefox CHANNEL=stable webpack --hide-modules",
"build-chrome": "cross-env NODE_ENV=production BROWSER=chrome CHANNEL=stable webpack --hide-modules",
"build-edge": "cross-env NODE_ENV=production BROWSER=edge CHANNEL=stable webpack --hide-modules",
"build:dev": "cross-env NODE_ENV=development BROWSER=firefox CHANNEL=dev webpack --hide-modules",

View File

@ -51,7 +51,6 @@ class Logger {
}
async init(conf) {
console.log("init logger with conf:", conf)
if (conf && process.env.CHANNEL === 'dev') {
this.conf = conf;
} else {

View File

@ -63,7 +63,8 @@ class UW {
'resizer': true,
'scaler': true,
'stretcher': true,
'videoRescan': false,
// 'videoRescan': true,
// 'playerRescan': true,
'arDetect': true,
'arDetect_verbose': true,
}
@ -86,16 +87,12 @@ class UW {
this.comms.destroy();
}
if (!this.settings) {
var ths = this;
this.settings = new Settings({updateCallback: (s) => {console.log("settings callback — ", s); ths.init()}, logger: this.logger});
await this.settings.init();
}
this.comms = new CommsClient('content-client-port', this.settings, this.logger);
// če smo razširitev onemogočili v nastavitvah, ne naredimo ničesar