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:
parent
1f8bdd7c4e
commit
912e321cd9
1 changed files with 0 additions and 7 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue