Do not try to redirect to login page when offline

This commit is contained in:
Vadim Zhukov
2018-10-01 18:59:42 +03:00
committed by Frédéric Guillot
parent 1db83cddd0
commit 497f36983c
3 changed files with 32 additions and 7 deletions

View File

@@ -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;
});
}