console colors only in debug mode. fix grid local target format

This commit is contained in:
Stewart Allen 2020-01-21 10:30:31 -05:00
commit ccaa58dd91
2 changed files with 7 additions and 2 deletions

View file

@ -13,7 +13,12 @@ Array.prototype.appendAll = function(a) {
const helper = {
log: function() {
console.log(moment().format('YYMMDD.HHmmss'), [...arguments].map(v => util.inspect(v, {breakLength:Infinity, colors:true})).join(' '));
console.log(
moment().format('YYMMDD.HHmmss'),
[...arguments]
.map(v => util.inspect(v, {breakLength:Infinity, colors:clearJS}))
.join(' ')
);
}
};

View file

@ -58,7 +58,7 @@
<span><label>grid:local</label></span>
<div>
<table>
<tr><th>target</th><td><select id="grid-local"></select></td></tr>
<tr><th>target</th><td width="100%"><select id="grid-local"></select></td></tr>
</table>
</div>
<div class="flex fcol print-send">