capture all 2xx as success
This commit is contained in:
@@ -31,7 +31,7 @@ class HttpManager {
|
|||||||
response = JSON.parse(response);
|
response = JSON.parse(response);
|
||||||
}
|
}
|
||||||
|
|
||||||
if(xmlhttp.status == 200){
|
if(xmlhttp.status >= 200 && xmlhttp.status <= 299){
|
||||||
console.log("onsuccess", response);
|
console.log("onsuccess", response);
|
||||||
this.$timeout(function(){
|
this.$timeout(function(){
|
||||||
onsuccess(response);
|
onsuccess(response);
|
||||||
|
|||||||
Reference in New Issue
Block a user