Compare commits
1 Commits
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
67505414d9 |
@@ -86,7 +86,7 @@
|
|||||||
function apiGetStats(cb) {
|
function apiGetStats(cb) {
|
||||||
fetch('/api/stats')
|
fetch('/api/stats')
|
||||||
.then(function(r){ return r.json(); })
|
.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); });
|
.catch(function(e){ cb(e.message); });
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user