Quieted message
This commit is contained in:
parent
c1594dd4cc
commit
998a2db53e
@ -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 () {
|
||||
|
@ -52,7 +52,6 @@ function Ronin () {
|
||||
}
|
||||
|
||||
this.log = function (...msg) {
|
||||
console.log(...msg)
|
||||
this.commander.setStatus(msg.reduce((acc, val) => { return acc + val + ' ' }, ''))
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user