summaryrefslogtreecommitdiff
path: root/public/js
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--public/js/common.js3
1 files changed, 2 insertions, 1 deletions
diff --git a/public/js/common.js b/public/js/common.js
index 5e9456bd..cfde462c 100644
--- a/public/js/common.js
+++ b/public/js/common.js
@@ -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() {