Log all json responses.
This commit is contained in:
parent
cf3e4ca69b
commit
134afb8e05
|
@ -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 => {
|
||||||
|
|
Loading…
Reference in New Issue