Skip to content

Commit 246c9da

Browse files
committed
Fix spellcheck settings from cookies might not a boolean in string type
1 parent b8ff911 commit 246c9da

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/js/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -508,7 +508,7 @@ function setSpellcheck() {
508508
var cookieSpellcheck = Cookies.get('spellcheck');
509509
if (cookieSpellcheck) {
510510
var mode = null;
511-
if (cookieSpellcheck === 'true') {
511+
if (cookieSpellcheck === 'true' || cookieSpellcheck === true) {
512512
mode = 'spell-checker';
513513
} else {
514514
mode = 'gfm';

0 commit comments

Comments
 (0)