mirror of
https://github.com/status-im/codimd.git
synced 2025-02-02 15:33:38 +00:00
Fix cookies might not in boolean type cause page refresh loop
This commit is contained in:
parent
423dccae0e
commit
b8ff9112ef
@ -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() {
|
||||
|
Loading…
x
Reference in New Issue
Block a user