Fix cookies might not in boolean type cause page refresh loop
This commit is contained in:
@@ -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() {
|
||||||
|
|||||||
Reference in New Issue
Block a user