Do not try to redirect to login page when offline
This commit is contained in:
committed by
Frédéric Guillot
parent
1db83cddd0
commit
497f36983c
@@ -3,7 +3,7 @@ KB.interval(60, function () {
|
||||
var loginUrl = KB.find('body').data('loginUrl');
|
||||
|
||||
if (KB.find('.form-login') === null) {
|
||||
KB.http.get(statusUrl).error(function () {
|
||||
KB.http.get(statusUrl).authError(function () {
|
||||
window.location = loginUrl;
|
||||
});
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user