Grammalecte  Check-in [579e1a4fb6]

Overview
Comment:[fx] fix communication between background/worker
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | fx
Files: files | file ages | folders
SHA3-256: 579e1a4fb6c1dd0384a24949f5ee6b5d1e7885dd00f6ac6e9e65fc891f40092e
User & Date: olr on 2018-04-02 14:53:49
Other Links: manifest | tags
Context
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
14:37
[fr] gendicfr: vérifications des verbes du 2ᵉ groupe check-in: cd440f504c user: olr tags: trunk, fr
Changes

Modified gc_lang/fr/webext/background.js from [4add4e7f3a] to [a81d6917ba].

61
62
63
64
65
66
67

68
69
70
71
72
73
74
75
                browser.runtime.sendMessage(e.data);
                break;
            case "setOptions":
            case "setOption":
                storeGCOptions(result);
                break;
            case "setDictionary":

                console.log("[background] " + sActionDone + ": " + result);
                break;
            default:
                console.log("[background] Unknown command: " + sActionDone);
                console.log(e.data);
        }
    }
    catch (error) {







>
|







61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
                browser.runtime.sendMessage(e.data);
                break;
            case "setOptions":
            case "setOption":
                storeGCOptions(result);
                break;
            case "setDictionary":
            case "setDictionaryOnOff":
                //console.log("[background] " + sActionDone + ": " + result);
                break;
            default:
                console.log("[background] Unknown command: " + sActionDone);
                console.log(e.data);
        }
    }
    catch (error) {

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

361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
            } else {
                oSpellChecker.deactivatePersonalDictionary();
            }
            break;
        default:
            console.log("[worker] setDictionaryOnOff: Unknown dictionary <"+sDictionary+">");
    }
    postMessage(createResponse("setDictionary", true, dInfo, true));
}

function getSpellSuggestions (sWord, dInfo) {
    if (!oSpellChecker) {
        postMessage(createResponse("getSpellSuggestions", "# Error. SpellChecker not loaded.", dInfo, true));
        return;
    }







|







361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
            } else {
                oSpellChecker.deactivatePersonalDictionary();
            }
            break;
        default:
            console.log("[worker] setDictionaryOnOff: Unknown dictionary <"+sDictionary+">");
    }
    postMessage(createResponse("setDictionaryOnOff", true, dInfo, true));
}

function getSpellSuggestions (sWord, dInfo) {
    if (!oSpellChecker) {
        postMessage(createResponse("getSpellSuggestions", "# Error. SpellChecker not loaded.", dInfo, true));
        return;
    }