diff options
author | Wu Cheng-Han | 2016-07-30 11:00:00 +0800 |
---|---|---|
committer | Wu Cheng-Han | 2016-07-30 11:00:00 +0800 |
commit | 246c9da5742041bf7255f5c03a99448995db65a0 (patch) | |
tree | 222c9bdbaea2414f32dddfa69fa6debefca9052f | |
parent | b8ff9112ef1556e6996b2f64ad6df559b6f2c2fb (diff) |
Fix spellcheck settings from cookies might not a boolean in string type
-rw-r--r-- | public/js/index.js | 2 |
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'; |