fix init spell checker
authorLaurent Mazet <mazet@softndesign.org>
Fri, 14 Aug 2020 12:28:38 +0000 (14:28 +0200)
committerLaurent Mazet <mazet@softndesign.org>
Fri, 14 Aug 2020 12:28:38 +0000 (14:28 +0200)
public/trivabble.js

index e7d20113e05b75bf5bea91c7d8d305bbf470e30b..dc093e980fbb1cc3010f3d7ef456830e4040d4ec 100644 (file)
@@ -42,7 +42,7 @@
     setConf("ENABLE_EVENT_SOURCE",  true);
     setConf("MAX_WEBSOCKET_ERRORS", 1);
     setConf("APP_PATH",             "");
-    setConf("ENABLE_SPELL_CHECKER", false);
+    setConf("SPELL_CHECKER",        "false");
 
     const _ = (window.libD && libD.l10n) ? libD.l10n() : function (s) {
         return s;
         document.getElementById("enable-spell-checker").onclick = enableSpellChecker;
 
         if (localStorage.spellChecker !== "false") {
-            downloadDictionary(localStorage.spellChecker)
+            const spellChecker = localStorage.spellChecker;
+            localStorage.spellChecker = "false";
+            downloadDictionary(spellChecker)
         } else {
             checkSpellCheckerState("false");
         }