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