Index: gc_lang/fr/mailext/content/lex_editor.js ================================================================== --- gc_lang/fr/mailext/content/lex_editor.js +++ gc_lang/fr/mailext/content/lex_editor.js @@ -446,16 +446,14 @@ disableElement("export_button"); } }, import: function () { - //console.log("import"); oFileHandler.loadAs(this._import.bind(this)); }, _import: function (sJSON) { - //console.log("_import"); this._load(sJSON, true); }, setDictData: function (nEntries, sDate) { document.getElementById("dic_num_entries").value = nEntries; Index: gc_lang/fr/mailext/content/overlay.js ================================================================== --- gc_lang/fr/mailext/content/overlay.js +++ gc_lang/fr/mailext/content/overlay.js @@ -137,13 +137,13 @@ let xNodeP = document.createElement("p"); xNodeP.setAttribute("class", "message"); xNodeP.textContent = "Aucune erreur détectée…"; document.getElementById("grammalecte-errors").appendChild(xNodeP); } - this.setInfo("Nombre de paragraphes analysés : " + res); + this.setInfo("Nombre de paragraphes analysés : " + nParagraph); } - catch { + catch (e) { this.setInfo("Erreur : " + e.message); console.error(e); } }, createResultNode: function (xEditor, sParagraph, iParagraph, aGrammErr, aSpellErr) { @@ -158,11 +158,10 @@ let xResultNode = document.getElementById("resnode"+iParagraph); xResultNode.textContent = "…………… réanalyse en cours ……………"; let sParagraph = xEditor.getParagraph(iParagraph); let xPromise = this.xGCEWorker.post('parseAndSpellcheck', [sParagraph, "FR", false, false]); xPromise.then(function (res) { - //console.log("res: " + res); xResultNode.textContent = ""; let oRes = JSON.parse(res); if (oRes.aGrammErr.length > 0 || oRes.aSpellErr.length > 0) { that.fillResultNode(xResultNode, xEditor, sParagraph, iParagraph, oRes.aGrammErr, oRes.aSpellErr); }