capture all 2xx as success

This commit is contained in:
Mo Bitar
2017-02-26 10:41:27 -06:00
parent fa02068784
commit 86019aaa8a

View File

@@ -31,7 +31,7 @@ class HttpManager {
response = JSON.parse(response);
}
if(xmlhttp.status == 200){
if(xmlhttp.status >= 200 && xmlhttp.status <= 299){
console.log("onsuccess", response);
this.$timeout(function(){
onsuccess(response);