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    151           browser.storage.local.get("oPersonalDictionary").then(this._setSpellingDictionaries, showError); // deprecated
   152    152           browser.storage.local.get("sc_options").then(this._initSCOptions, showError);
   153    153       },
   154    154   
   155    155       registerComposeScripts: async function () {
   156    156           // For Thunderbird only
   157    157           if (bThunderbird) {
   158         -            let xRegisteredScripts = await browser.composeScripts.register({
          158  +            let xRegisteredScripts = await messenger.composeScripts.register({
   159    159                   /*css: [
   160    160                       // Any number of code or file objects could be listed here.
   161    161                       { code: "body { background-color: red; }" },
   162    162                       { file: "compose.css" },
   163    163                   ],*/
   164    164                   js: [
   165    165                       // Any number of code or file objects could be listed here.
................................................................................
   365    365   
   366    366   
   367    367   /*
   368    368       ComposeAction
   369    369       (Thunderbird only)
   370    370   */
   371    371   if (bThunderbird) {
   372         -    browser.composeAction.onClicked.addListener(function (xTab, xData) {
          372  +    messenger.composeAction.onClicked.addListener(function (xTab, xData) {
   373    373           sendCommandToTab(xTab.id, "grammar_checker_compose_window");
   374    374       });
   375    375   }
   376    376   
   377    377   
   378    378   /*
   379    379       Context Menu