diff --git a/desktop/sources/scripts/commander.js b/desktop/sources/scripts/commander.js index cfc6f34..b855cc3 100644 --- a/desktop/sources/scripts/commander.js +++ b/desktop/sources/scripts/commander.js @@ -54,8 +54,9 @@ function Commander (ronin) { } this.setStatus = function (msg) { - if (!msg) { return } + if (!msg || msg === this._status.textContent) { return } this._status.textContent = `${(msg + '').substr(0, 40)}` + console.log(...msg) } this.update = function () { diff --git a/desktop/sources/scripts/ronin.js b/desktop/sources/scripts/ronin.js index 0883f22..ea59299 100644 --- a/desktop/sources/scripts/ronin.js +++ b/desktop/sources/scripts/ronin.js @@ -52,7 +52,6 @@ function Ronin () { } this.log = function (...msg) { - console.log(...msg) this.commander.setStatus(msg.reduce((acc, val) => { return acc + val + ' ' }, '')) }