Grammalecte  Check-in [8676649377]

Overview
Comment:[tb][fx] use messenger instead of browser to prevent the linter whining
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | trunk | tb | fx
Files: files | file ages | folders
SHA3-256: 867664937758a71ea11004c4b40dcfddd4117a71f50751340575bb837c9ab4a6
User & Date: olr on 2020-07-11 07:27:44
Other Links: manifest | tags
Context
2020-07-11
18:03
[fr] ajustements check-in: 329469853c user: olr tags: fr, trunk
07:27
[tb][fx] use messenger instead of browser to prevent the linter whining check-in: 8676649377 user: olr tags: fx, tb, trunk
2020-07-10
14:33
[fx] remove event listener in gc panel conjugueur check-in: 20fb09749e user: olr tags: fx, trunk
Changes

Modified gc_lang/fr/webext/background.js from [58462d987c] to [8760b8d3dd].

151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
...
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
        browser.storage.local.get("oPersonalDictionary").then(this._setSpellingDictionaries, showError); // deprecated
        browser.storage.local.get("sc_options").then(this._initSCOptions, showError);
    },

    registerComposeScripts: async function () {
        // For Thunderbird only
        if (bThunderbird) {
            let xRegisteredScripts = await browser.composeScripts.register({
                /*css: [
                    // Any number of code or file objects could be listed here.
                    { code: "body { background-color: red; }" },
                    { file: "compose.css" },
                ],*/
                js: [
                    // Any number of code or file objects could be listed here.
................................................................................


/*
    ComposeAction
    (Thunderbird only)
*/
if (bThunderbird) {
    browser.composeAction.onClicked.addListener(function (xTab, xData) {
        sendCommandToTab(xTab.id, "grammar_checker_compose_window");
    });
}


/*
    Context Menu







|







 







|







151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
...
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
        browser.storage.local.get("oPersonalDictionary").then(this._setSpellingDictionaries, showError); // deprecated
        browser.storage.local.get("sc_options").then(this._initSCOptions, showError);
    },

    registerComposeScripts: async function () {
        // For Thunderbird only
        if (bThunderbird) {
            let xRegisteredScripts = await messenger.composeScripts.register({
                /*css: [
                    // Any number of code or file objects could be listed here.
                    { code: "body { background-color: red; }" },
                    { file: "compose.css" },
                ],*/
                js: [
                    // Any number of code or file objects could be listed here.
................................................................................


/*
    ComposeAction
    (Thunderbird only)
*/
if (bThunderbird) {
    messenger.composeAction.onClicked.addListener(function (xTab, xData) {
        sendCommandToTab(xTab.id, "grammar_checker_compose_window");
    });
}


/*
    Context Menu