Index: gc_lang/fr/webext/content_scripts/init.js ================================================================== --- gc_lang/fr/webext/content_scripts/init.js +++ gc_lang/fr/webext/content_scripts/init.js @@ -470,12 +470,17 @@ if (oCommand.sNodeId && document.getElementById(oCommand.sNodeId)) { oGrammalecte.startGCPanel(document.getElementById(oCommand.sNodeId)); } break; case "openPanelForText": - if (oCommand.sText && oCommand.sNodeId && document.getElementById(oCommand.sNodeId)) { - oGrammalecte.startGCPanel(oCommand.sText, document.getElementById(oCommand.sNodeId)); + if (oCommand.sText) { + if (oCommand.sText && oCommand.sNodeId && document.getElementById(oCommand.sNodeId)) { + oGrammalecte.startGCPanel(oCommand.sText, document.getElementById(oCommand.sNodeId)); + } + else { + oGrammalecte.startGCPanel(oCommand.sText); + } } break; case "parseNode": if (oCommand.sNodeId && document.getElementById(oCommand.sNodeId)) { let xNode = document.getElementById(oCommand.sNodeId);