fix: [js] fixes #4678 and javascript errors

pull/4769/head
Christophe Vandeplas 2019-06-18 13:46:32 +02:00
parent 599641672e
commit 9f8e22e96c
1 changed files with 2 additions and 0 deletions

View File

@ -4148,6 +4148,8 @@ function checkIfLoggedIn() {
if (data.slice(-2) !== 'OK') {
window.location.replace(baseurl + "/users/login");
}
}).fail(function() {
window.location.replace(baseurl + "/users/login");
});
}
setTimeout(function() { checkIfLoggedIn(); }, 5000);