Merge pull request #127 from rgarmsen2295/mm-1047
MM-1047 Error code 200 IE 10 & 11 suppression within getMeSynchronous method
Этот коммит содержится в:
@@ -286,9 +286,12 @@ module.exports.getMeSynchronous = function(success, error) {
|
|||||||
if (success) success(data, textStatus, xhr);
|
if (success) success(data, textStatus, xhr);
|
||||||
},
|
},
|
||||||
error: function(xhr, status, err) {
|
error: function(xhr, status, err) {
|
||||||
if (error) {
|
var ieChecker = window.navigator.userAgent; // This and the condition below is used to check specifically for browsers IE10 & 11 to suppress a 200 'OK' error from appearing on login
|
||||||
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