Fix spellcheck settings from cookies might not a boolean in string type
This commit is contained in:
parent
b8ff9112ef
commit
246c9da574
1 changed files with 1 additions and 1 deletions
|
@ -508,7 +508,7 @@ function setSpellcheck() {
|
||||||
var cookieSpellcheck = Cookies.get('spellcheck');
|
var cookieSpellcheck = Cookies.get('spellcheck');
|
||||||
if (cookieSpellcheck) {
|
if (cookieSpellcheck) {
|
||||||
var mode = null;
|
var mode = null;
|
||||||
if (cookieSpellcheck === 'true') {
|
if (cookieSpellcheck === 'true' || cookieSpellcheck === true) {
|
||||||
mode = 'spell-checker';
|
mode = 'spell-checker';
|
||||||
} else {
|
} else {
|
||||||
mode = 'gfm';
|
mode = 'gfm';
|
||||||
|
|
Loading…
Reference in a new issue