Grammalecte  Check-in [4cffd5d5c6]

Overview
Comment:[njs] Load personal dic error argument when is json
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | nodejs
Files: files | file ages | folders
SHA3-256: 4cffd5d5c6838bdf0422c4926268949535e4f80bca565ea3abf47892dd4cc796
User & Date: IllusionPerdu on 2018-10-22 18:50:15
Other Links: branch diff | manifest | tags
Context
2018-10-22
23:31
[njs][build] Add command to create file to distrib and ajust package.json Leaf check-in: e62a1b8a62 user: IllusionPerdu tags: nodejs
18:50
[njs] Load personal dic error argument when is json check-in: 4cffd5d5c6 user: IllusionPerdu tags: nodejs
11:22
[njs] Update doc check-in: b52fc4588c user: IllusionPerdu tags: nodejs
Changes

Modified gc_lang/fr/nodejs/core/api.js from [af514e995f] to [ac6bdb1804].

   230    230                   let dirname = path.dirname(pathnormalized);
   231    231                   return this.oSpellChecker.setPersonalDictionary(filename, dirname, bActivate);
   232    232               }
   233    233               return false;
   234    234           }
   235    235           //It's a valid json?
   236    236           if (typeof dictionary !== "undefined" && dictionary.sHeader && dictionary.sHeader.startsWith("/grammalecte-fsa/")) {
   237         -            return this.oSpellChecker.setPersonalDictionary(dictionary, bActivate);
          237  +            return this.oSpellChecker.setPersonalDictionary(dictionary, "", bActivate);
   238    238           }
   239    239           return false;
   240    240       }
   241    241   
   242    242       spellParagraph(sText, bSuggest = true) {
   243    243           if (!this.isInit.Graphspell) {
   244    244               this.load(["Graphspell"]);