Implemented IE10 & 11 specific error suppression when a 200 status (aka OK) error is thrown
Этот коммит содержится в:
@@ -280,16 +280,18 @@ module.exports.getMeSynchronous = function(success, error) {
|
|||||||
url: "/api/v1/users/me",
|
url: "/api/v1/users/me",
|
||||||
dataType: 'json',
|
dataType: 'json',
|
||||||
contentType: 'application/json',
|
contentType: 'application/json',
|
||||||
//cache: false,
|
|
||||||
type: 'GET',
|
type: 'GET',
|
||||||
success: function(data, textStatus, xhr) {
|
success: function(data, textStatus, xhr) {
|
||||||
current_user = data;
|
current_user = data;
|
||||||
if (success) success(data, textStatus, xhr);
|
if (success) success(data, textStatus, xhr);
|
||||||
},
|
},
|
||||||
error: function(xhr, status, err) {
|
error: function(xhr, status, err) {
|
||||||
if (/*xhr.status != 200 && */error) {
|
var ieChecker = window.navigator.userAgent;
|
||||||
e = handleError("getMeSynchronous", xhr, status, err);
|
if (xhr.status != 200 || !(ieChecker.indexOf("Trident/7.0") > 0 || ieChecker.indexOf("Trident/6.0") > 0)) {
|
||||||
error(e);
|
if (error) {
|
||||||
|
e = handleError("getMeSynchronous", xhr, status, err);
|
||||||
|
error(e);
|
||||||
|
};
|
||||||
};
|
};
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
|||||||
Ссылка в новой задаче
Block a user