From: Laurent Mazet Date: Sun, 13 Sep 2020 09:39:40 +0000 (+0200) Subject: avoid string true for boolean variable X-Git-Url: https://secure.softndesign.org/git/?a=commitdiff_plain;h=677724b76cea78cad9821b513b12c962991fd7c8;p=trivabble.git avoid string true for boolean variable --- diff --git a/public/trivabble.js b/public/trivabble.js index 518cd30..5286b7f 100644 --- a/public/trivabble.js +++ b/public/trivabble.js @@ -260,11 +260,11 @@ return; } - if (!force && getSetting("spellCheckerEnabled") !== "true") { + if (!force && !getSetting("spellCheckerEnabled")) { myConfirm( _("Spell checking requires Trivabble to download a dictionary. Do you confirm?"), function () { - setSetting("spellCheckerEnabled", "true"); + setSetting("spellCheckerEnabled", true); getDictionary(code, callback, true); } );