Fix cookies might not in boolean type cause page refresh loop
This commit is contained in:
@@ -53,7 +53,8 @@ function checkLoginStateChanged() {
|
||||
}
|
||||
|
||||
function getLoginState() {
|
||||
return Cookies.get('loginstate') === "true";
|
||||
var state = Cookies.get('loginstate');
|
||||
return state === "true" || state === true;
|
||||
}
|
||||
|
||||
function getUserId() {
|
||||
|
||||
Reference in New Issue
Block a user