This commit is contained in:
Florent Vilmart
2016-03-08 00:15:17 -05:00
parent 982fc72327
commit 6acb5cee80
3 changed files with 25 additions and 26 deletions

View File

@@ -13,9 +13,9 @@ export default class HTTPResponse {
get data() {
if (!this._data) {
try {
this._data = JSON.parse(this.text);
this._data = JSON.parse(this.text);
} catch (e) {}
}
return this._data;
}
}
}