This commit is contained in:
Mo Bitar
2017-03-10 14:13:04 -06:00
parent 3ca8d0c94c
commit a8eab8aab7

View File

@@ -28,7 +28,9 @@ class HttpManager {
if (xmlhttp.readyState == 4) {
var response = xmlhttp.responseText;
if(response) {
response = JSON.parse(response);
try {
response = JSON.parse(response);
} catch(e) {}
}
if(xmlhttp.status >= 200 && xmlhttp.status <= 299){