Index: gc_lang/fr/webext/content_scripts/panel_gc.js ================================================================== --- gc_lang/fr/webext/content_scripts/panel_gc.js +++ gc_lang/fr/webext/content_scripts/panel_gc.js @@ -227,20 +227,20 @@ // write text this.oTextControl.setParagraph(parseInt(xEvent.target.dataset.para_num), this.purgeText(xEvent.target.textContent)); this.oTextControl.write(); }.bind(this) , true); - xParagraph.addEventListener("blur", function (xEvent) { + /*xParagraph.addEventListener("blur", function (xEvent) { // remove timer for refreshing analysis window.clearTimeout(parseInt(xParagraph.dataset.timer_id)); // unset caret position xParagraph.dataset.caret_position_start = "-1"; xParagraph.dataset.caret_position_end = "-1"; // recheck this.recheckParagraph(oResult.iParaNum); }.bind(this) - , true); + , true);*/ this._tagParagraph(xParagraph, oResult.sParagraph, oResult.iParaNum, oResult.aGrammErr, oResult.aSpellErr); // creation xNodeDiv.appendChild(xActionsBar); xNodeDiv.appendChild(xParagraph); this.xParagraphList.appendChild(xNodeDiv); @@ -418,13 +418,13 @@ this.stopWaitIcon(); } _sendTextToClipboard (sText) { this.xClipboardButton.textContent = "⇒ presse-papiers"; - // Firefox 63+, Chrome 66+ - // Working draft: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard - if (navigator.clipboard && navigator.clipboard.writeText) { + if (navigator.hasOwnProperty("clipboard") && navigator.clipboard.hasOwnProperty("writeText")) { + // Firefox 63+, Chrome 66+ + // Working draft: https://developer.mozilla.org/en-US/docs/Web/API/Clipboard navigator.clipboard.writeText(sText) .then( (res) => { window.setTimeout(() => { this.xClipboardButton.textContent = "📋"; }, 2000); } ) .catch(