Index: gc_lang/fr/webext/content_scripts/gc_content.js ================================================================== --- gc_lang/fr/webext/content_scripts/gc_content.js +++ gc_lang/fr/webext/content_scripts/gc_content.js @@ -177,14 +177,18 @@ } document.getElementById("gc_ignore").dataset.error_id = xNodeErr.dataset.error_id; let iSugg = 0; let xGCSugg = document.getElementById("gc_sugg_block"); xGCSugg.textContent = ""; - for (let sSugg of xNodeErr.dataset.suggestions.split("|")) { - xGCSugg.appendChild(this._createSuggestion(xNodeErr.dataset.error_id, iSugg, sSugg)); - xGCSugg.appendChild(document.createTextNode(" ")); - iSugg += 1; + if (xNodeErr.dataset.suggestions.length > 0) { + for (let sSugg of xNodeErr.dataset.suggestions.split("|")) { + xGCSugg.appendChild(this._createSuggestion(xNodeErr.dataset.error_id, iSugg, sSugg)); + xGCSugg.appendChild(document.createTextNode(" ")); + iSugg += 1; + } + } else { + xGCSugg.textContent = "Aucune."; } } xNodeTooltipArrow.style.display = "block"; xNodeTooltip.style.display = "block"; if (xNodeErr.dataset.error_type === "spelling") {