summaryrefslogtreecommitdiff
path: root/public
diff options
context:
space:
mode:
authorWu Cheng-Han2016-07-30 11:00:00 +0800
committerWu Cheng-Han2016-07-30 11:00:00 +0800
commit246c9da5742041bf7255f5c03a99448995db65a0 (patch)
tree222c9bdbaea2414f32dddfa69fa6debefca9052f /public
parentb8ff9112ef1556e6996b2f64ad6df559b6f2c2fb (diff)
Fix spellcheck settings from cookies might not a boolean in string type
Diffstat (limited to '')
-rw-r--r--public/js/index.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/public/js/index.js b/public/js/index.js
index 25b94bd6..5251541c 100644
--- a/public/js/index.js
+++ b/public/js/index.js
@@ -508,7 +508,7 @@ function setSpellcheck() {
var cookieSpellcheck = Cookies.get('spellcheck');
if (cookieSpellcheck) {
var mode = null;
- if (cookieSpellcheck === 'true') {
+ if (cookieSpellcheck === 'true' || cookieSpellcheck === true) {
mode = 'spell-checker';
} else {
mode = 'gfm';