diff --git a/static/app.js b/static/app.js index a2b322b..906562c 100644 --- a/static/app.js +++ b/static/app.js @@ -86,7 +86,7 @@ function apiGetStats(cb) { fetch('/api/stats') .then(function(r){ return r.json(); }) - .then(function(res){ if (res.ok) cb(null, res.data); else cb(res.error); }) + .then(function(res){ if (res.ok) cb(null, res); else cb(res.error); }) .catch(function(e){ cb(e.message); }); }