Grammalecte  Check-in [1811000cdc]

Overview
Comment:[tb] don’t use background for now, useless now
Downloads: Tarball | ZIP archive | SQL archive
Timelines: family | ancestors | descendants | both | tb | tbme
Files: files | file ages | folders
SHA3-256: 1811000cdce9a493843d0eb9a04d34a8eaa73f1e77126b3aba6bd8d8b4bbf7fa
User & Date: olr on 2019-09-06 13:25:56
Original Comment: [tb] don’t background for now, useless now
Other Links: branch diff | manifest | tags
Context
2019-09-06
16:32
merge trunk check-in: 3bec30b855 user: olr tags: tbme
13:25
[tb] don’t use background for now, useless now check-in: 1811000cdc user: olr tags: tb, tbme
11:49
[tb] ui: text formatter adjustments (bugs workaround) check-in: 6ccbd8eea2 user: olr tags: tb, tbme
Changes

Modified gc_lang/fr/mailext/background.js from [94e55b71a5] to [3a88cd4eaf].

1
2
3
4
5
6
7
8
9
10
11
12
13
// Background

"use strict";

console.log("THUNDERBIRD!!! BACKGROUND");


const oWorkerHandler = {
    xGCEWorker: null,

    nLastTimeWorkerResponse: 0,  // milliseconds since 1970-01-01

    oTask: {},




<
|







1
2
3
4

5
6
7
8
9
10
11
12
// Background

"use strict";


// Draft for later

const oWorkerHandler = {
    xGCEWorker: null,

    nLastTimeWorkerResponse: 0,  // milliseconds since 1970-01-01

    oTask: {},
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
        browser.storage.local.get("autorefresh_option").then(this._initUIOptions, showError);
    },

    initGrammarChecker: function () {
        browser.storage.local.get("gc_options").then(this._initGrammarChecker, showError);
        browser.storage.local.get("personal_dictionary").then(this._setSpellingDictionaries, showError);
        browser.storage.local.get("community_dictionary").then(this._setSpellingDictionaries, showError);
        browser.storage.local.get("oPersonalDictionary").then(this._setSpellingDictionaries, showError); // deprecated
        browser.storage.local.get("sc_options").then(this._initSCOptions, showError);
    },

    _initUIOptions: function (oSavedOptions) {
        if (!oSavedOptions.hasOwnProperty("ui_options")) {
            browser.storage.local.set({"ui_options": {
                textarea: true,







<







113
114
115
116
117
118
119

120
121
122
123
124
125
126
        browser.storage.local.get("autorefresh_option").then(this._initUIOptions, showError);
    },

    initGrammarChecker: function () {
        browser.storage.local.get("gc_options").then(this._initGrammarChecker, showError);
        browser.storage.local.get("personal_dictionary").then(this._setSpellingDictionaries, showError);
        browser.storage.local.get("community_dictionary").then(this._setSpellingDictionaries, showError);

        browser.storage.local.get("sc_options").then(this._initSCOptions, showError);
    },

    _initUIOptions: function (oSavedOptions) {
        if (!oSavedOptions.hasOwnProperty("ui_options")) {
            browser.storage.local.set({"ui_options": {
                textarea: true,

Modified gc_lang/fr/mailext/manifest.json from [d6b505c28a] to [8fc810be06].

9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
  "name": "${tb_name}",
  "description": "${description}",
  "version": "${version}",

  "author": "${author}",
  "homepage_url": "${link}",

  "background": {
    "scripts": [
      "grammalecte/graphspell/helpers.js",
      "background.js"
    ]
  },

  "permissions": [
    "storage"
  ],

  "legacy":  {
    "type": "xul"
  }
}







<
<
<
<
|
<
<
<
<
<





9
10
11
12
13
14
15




16





17
18
19
20
21
  "name": "${tb_name}",
  "description": "${description}",
  "version": "${version}",

  "author": "${author}",
  "homepage_url": "${link}",












  "legacy":  {
    "type": "xul"
  }
}