Log all json responses.

This commit is contained in:
mmcwilliams 2017-11-21 17:13:07 -05:00
parent cf3e4ca69b
commit 134afb8e05
1 changed files with 3 additions and 1 deletions

View File

@ -443,7 +443,9 @@
web.getState = function () { web.getState = function () {
fetch('/status') fetch('/status')
.then(res => { .then(res => {
return res.json() let r = res.json();
console.dir(r);
return r;
}) })
.then(web.getStateSuccess) .then(web.getStateSuccess)
.catch(err => { .catch(err => {