From 246c9da5742041bf7255f5c03a99448995db65a0 Mon Sep 17 00:00:00 2001 From: Wu Cheng-Han Date: Sat, 30 Jul 2016 11:00:00 +0800 Subject: Fix spellcheck settings from cookies might not a boolean in string type --- public/js/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'public/js/index.js') 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'; -- cgit v1.2.3