Grammalecte  Check-in [1811000cdc]

Many hyperlinks are disabled.
Use anonymous login to enable hyperlinks.

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 2019-09-06 13:25:56
Original Comment: [tb] don’t background for now, useless now
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

Changes to gc_lang/fr/mailext/background.js.

1
2
3
4
5
6
7
8
9
10
11
12
13
...
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
// Background

"use strict";

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


const oWorkerHandler = {
    xGCEWorker: null,

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

    oTask: {},
................................................................................
        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,




|
<







 







<







1
2
3
4
5

6
7
8
9
10
11
12
...
113
114
115
116
117
118
119

120
121
122
123
124
125
126
// Background

"use strict";

// Draft for later


const oWorkerHandler = {
    xGCEWorker: null,

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

    oTask: {},
................................................................................
        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,

Changes to gc_lang/fr/mailext/manifest.json.

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"
  }
}