summaryrefslogtreecommitdiff
path: root/assets/js/components/session-check.js
blob: 01f6f620426099f32f49f93f5d98aa5528ab0fd8 (plain)
1
2
3
4
5
6
7
8
9
10
KB.interval(60, function () {
    var statusUrl = KB.find('body').data('statusUrl');
    var loginUrl = KB.find('body').data('loginUrl');

    if (KB.find('.form-login') === null) {
        KB.http.get(statusUrl).error(function () {
            window.location = loginUrl;
        });
    }
});