From 677724b76cea78cad9821b513b12c962991fd7c8 Mon Sep 17 00:00:00 2001 From: Laurent Mazet Date: Sun, 13 Sep 2020 11:39:40 +0200 Subject: [PATCH] avoid string true for boolean variable --- public/trivabble.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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); } ); -- 2.30.2