diff --git a/public/js/index.js b/public/js/index.js
index 25b94bd..5251541 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';