mirror of
https://github.com/pierre42100/ComunicWeb
synced 2024-11-22 12:09:21 +00:00
Fix reload issue
This commit is contained in:
parent
5011d3e6ff
commit
562293a2e0
@ -175,7 +175,7 @@ const APIClient = {
|
||||
//Log error
|
||||
ComunicWeb.debug.logMessage("Got an error in a XHR request! \n Request URL: "+requestURL+" \n Response : "+apiXHR.responseText);
|
||||
|
||||
if (result.error.code == 412) {
|
||||
if (result.error.code == 412 && signed_in()) {
|
||||
UserLogin.__userLogin = false;
|
||||
ComunicWeb.user.loginTokens.deleteLoginTokens();
|
||||
System.restart();
|
||||
|
@ -102,7 +102,7 @@ function openGroupPage(info){
|
||||
* @return {Boolean} True if the user is signed in / false else
|
||||
*/
|
||||
function signed_in(){
|
||||
return ComunicWeb.user.userLogin.getUserLoginState();
|
||||
return UserLogin.getUserLoginState();
|
||||
}
|
||||
|
||||
/**
|
||||
@ -112,7 +112,7 @@ function signed_in(){
|
||||
* @return {Integer} The ID of the user
|
||||
*/
|
||||
function userID(){
|
||||
return ComunicWeb.user.userLogin.getUserID();
|
||||
return UserLogin.getUserID();
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user