1
0
Fork 0
mirror of https://github.com/documize/community.git synced 2025-08-07 14:35:28 +02:00

removed global 401 trap - useless

This commit is contained in:
Harvey Kandola 2016-05-17 12:53:53 -07:00
parent 1f8bdd7c4e
commit 912e321cd9

View file

@ -20,13 +20,6 @@ export function initialize( /*application*/ ) {
});
Dropzone.autoDiscover = false;
// global trap for XHR 401
$(document).ajaxError(function(e, xhr /*, settings, exception*/ ) {
if (xhr.status === 401 && is.not.startWith(window.location.pathname, "/auth/")) {
window.location.href = "/auth/login";
}
});
}
export default {