avoid string true for boolean variable
authorLaurent Mazet <mazet@softndesign.org>
Sun, 13 Sep 2020 09:39:40 +0000 (11:39 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Sun, 13 Sep 2020 09:39:40 +0000 (11:39 +0200)
public/trivabble.js

index 518cd30d61e2b1435999198cbcfa4f96c63126ec..5286b7ffc47e7896d92d49ba47aedbd637082c95 100644 (file)
             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);
                 }
             );