Fixed showevents in meshctrl.js

This commit is contained in:
Ylian Saint-Hilaire 2020-08-26 20:17:59 -07:00
parent a6fe7584ea
commit 566e54a6f1
1 changed files with 1 additions and 1 deletions

View File

@ -1063,7 +1063,7 @@ function serverConnect() {
var data = null; var data = null;
try { data = JSON.parse(rawdata); } catch (ex) { } try { data = JSON.parse(rawdata); } catch (ex) { }
if (data == null) { console.log('Unable to parse data: ' + rawdata); } if (data == null) { console.log('Unable to parse data: ' + rawdata); }
if (settings.cmd == 'showevents') { console.log(data); return; } if (settings.cmd == 'showevents') { console.log(JSON.stringify(data, null, 2)); return; }
switch (data.action) { switch (data.action) {
case 'serverinfo': { // SERVERINFO case 'serverinfo': { // SERVERINFO
console.log(data); console.log(data);