Overview
| Comment: | [tb] rename variable to avoid collision with another extension |
|---|---|
| Downloads: | Tarball | ZIP archive | SQL archive |
| Timelines: | family | ancestors | descendants | both | trunk | tb |
| Files: | files | file ages | folders |
| SHA3-256: |
9328b22957b5ed4d6b1bc605b7b7e4db |
| User & Date: | olr on 2020-03-31 20:29:34 |
| Other Links: | manifest | tags |
Context
|
2020-03-31
| ||
| 20:41 | [tb] rename variable to avoid collision with another extension check-in: 6f5fe30fdc user: olr tags: trunk, tb | |
| 20:29 | [tb] rename variable to avoid collision with another extension check-in: 9328b22957 user: olr tags: trunk, tb | |
| 20:26 | [fr] faux positif et ajustements check-in: 2d9eedba4c user: olr tags: trunk, fr | |
Changes
Modified gc_lang/fr/mailext/content/overlay.js from [382be936c1] to [4e5a5c3792].
1 2 3 4 5 6 7 8 9 10 11 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | - + |
// JavaScript
"use strict";
const Cc = Components.classes;
const Ci = Components.interfaces;
//const Cu = Components.utils;
//const { require } = Cu.import("resource://gre/modules/commonjs/toolkit/require.js", {});
const { BasePromiseWorker } = ChromeUtils.import('resource://gre/modules/PromiseWorker.jsm', {});
|
| ︙ | |||
35 36 37 38 39 40 41 | 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 | - + - + - - + + - + |
xGCEWorker: null,
loadGC: function () {
if (this.xGCEWorker === null) {
// Grammar checker
console.log('Loading Grammalecte');
this.xGCEWorker = new BasePromiseWorker('chrome://promiseworker/content/gce_worker.js');
let that = this;
|
| ︙ | |||
95 96 97 98 99 100 101 | 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 | - + - + - + |
function (aReason) { console.log('Promise rejected', aReason); }
).catch(
function (aCaught) { console.log('Promise Error', aCaught); }
);
},
setOptions: function () {
console.log('Set options');
|
| ︙ | |||
442 443 444 445 446 447 448 | 442 443 444 445 446 447 448 449 450 451 452 453 454 455 456 | - + |
},
onOpenGCOptions: function (e) {
let that = this;
let xPromise = this.xGCEWorker.post('getDefaultOptions');
xPromise.then(
function (aVal) {
console.log(aVal);
|
| ︙ | |||
483 484 485 486 487 488 489 | 483 484 485 486 487 488 489 490 491 492 493 494 495 496 497 | - + |
var oTextFormatter = {
init: function () {
try {
this.closePanel();
this.listen();
|
| ︙ | |||
527 528 529 530 531 532 533 | 527 528 529 530 531 532 533 534 535 536 537 538 539 540 541 | - + |
},
saveOptions: function () {
let oOptions = {};
for (let xNode of document.getElementsByClassName("option")) {
oOptions[xNode.id] = xNode.checked;
}
//console.log("save options: " + JSON.stringify(oOptions));
|
| ︙ |