Grammalecte  Check-in [9f2bee8dce]

Overview
Comment:[fx] remove console.log()
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx | v0.6.3
Files: files | file ages | folders
SHA3-256: 9f2bee8dceafd5e6886f3c234a92fb89fd106957dcc2b10f42bba664a97aa439
User & Date: olr on 2018-04-02 15:05:10
Other Links: manifest | tags
Context
2018-04-03
12:46
[fr] typo/ocr: confusion virgules-points check-in: 577fe544ae user: olr tags: trunk, fr
2018-04-02
15:05
[fx] remove console.log() check-in: 9f2bee8dce user: olr tags: trunk, fx, v0.6.3
14:53
[fx] fix communication between background/worker check-in: 579e1a4fb6 user: olr tags: trunk, fx
Changes

Modified gc_lang/fr/webext/gce_worker.js from [2ad120bf35] to [cde0b49723].

310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
// SpellChecker

function setDictionary (sDictionary, oDict, dInfo) {
    if (!oSpellChecker) {
        postMessage(createResponse("setDictionary", "# Error. SpellChecker not loaded.", dInfo, true));
        return;
    }
    console.log("setDictionary", sDictionary);
    switch (sDictionary) {
        case "main":
            oSpellChecker.setMainDictionary(oDict);
            break;
        case "extended":
            oSpellChecker.setExtendedDictionary(oDict);
            break;







|







310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
// SpellChecker

function setDictionary (sDictionary, oDict, dInfo) {
    if (!oSpellChecker) {
        postMessage(createResponse("setDictionary", "# Error. SpellChecker not loaded.", dInfo, true));
        return;
    }
    //console.log("setDictionary", sDictionary);
    switch (sDictionary) {
        case "main":
            oSpellChecker.setMainDictionary(oDict);
            break;
        case "extended":
            oSpellChecker.setExtendedDictionary(oDict);
            break;
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
}

function setDictionaryOnOff (sDictionary, bActivate, dInfo) {
    if (!oSpellChecker) {
        postMessage(createResponse("setDictionary", "# Error. SpellChecker not loaded.", dInfo, true));
        return;
    }
    console.log("setDictionaryOnOff", sDictionary, bActivate);
    switch (sDictionary) {
        case "extended":
            if (bActivate) {
                oSpellChecker.activateExtendedDictionary();
            } else {
                oSpellChecker.deactivateExtendedDictionary();
            }







|







335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
}

function setDictionaryOnOff (sDictionary, bActivate, dInfo) {
    if (!oSpellChecker) {
        postMessage(createResponse("setDictionary", "# Error. SpellChecker not loaded.", dInfo, true));
        return;
    }
    //console.log("setDictionaryOnOff", sDictionary, bActivate);
    switch (sDictionary) {
        case "extended":
            if (bActivate) {
                oSpellChecker.activateExtendedDictionary();
            } else {
                oSpellChecker.deactivateExtendedDictionary();
            }