348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
|
348
349
350
351
352
353
354
355
356
357
358
359
360
361
|
-
|
return true;
}
function checkAndSendToPanel (sIdParagraph, sText) {
let xPromise = xGCEWorker.post('parseAndSpellcheck', [sText, "FR", false, false]);
xPromise.then(
function (aVal) {
sText = text.addHtmlEntities(sText);
xGCPanel.port.emit("refreshParagraph", sText, sIdParagraph, aVal);
},
function (aReason) {
console.error('Promise rejected - ', aReason);
}
).catch(
function (aCaught) {
|