Fix cookies might not in boolean type cause page refresh loop
This commit is contained in:
parent
423dccae0e
commit
b8ff9112ef
1 changed files with 2 additions and 1 deletions
|
@ -53,7 +53,8 @@ function checkLoginStateChanged() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function getLoginState() {
|
function getLoginState() {
|
||||||
return Cookies.get('loginstate') === "true";
|
var state = Cookies.get('loginstate');
|
||||||
|
return state === "true" || state === true;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getUserId() {
|
function getUserId() {
|
||||||
|
|
Loading…
Reference in a new issue