84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
|
-
+
-
+
|
}
}
/*
Connexion to the background
*/
let xPort = browser.runtime.connect({name: "content-script port"});
let xGrammalectePort = browser.runtime.connect({name: "content-script port"});
xPort.onMessage.addListener(function (oMessage) {
xGrammalectePort.onMessage.addListener(function (oMessage) {
let {sActionDone, result, dInfo, bEnd, bError} = oMessage;
switch (sActionDone) {
case "parseAndSpellcheck":
if (!bEnd) {
oGrammalecte.oGCPanel.addParagraphResult(result);
} else {
oGrammalecte.oGCPanel.stopWaitIcon();
|