Index: gc_lang/fr/webext/content_scripts/menu.js ================================================================== --- gc_lang/fr/webext/content_scripts/menu.js +++ gc_lang/fr/webext/content_scripts/menu.js @@ -90,15 +90,15 @@ } insertIntoPage () { this.bShadow = document.body.createShadowRoot || document.body.attachShadow; if (this.bShadow) { - this.xShadowBtn = oGrammalecte.createNode("div", { style: "display:none; position:absolute; width:0; height:0;" }); - this.xShadowBtnNode = this.xShadowBtn.attachShadow({ mode: "open" }); - oGrammalecte.createStyle("content_scripts/menu.css", null, this.xShadowBtnNode); - this.xShadowBtnNode.appendChild(this.xButton); - document.body.appendChild(this.xShadowBtnNode); + this.xShadowHost = oGrammalecte.createNode("div", { id: "grammalecte_menu_main_button_shadow", style: "width:0; height:0;" }); + this.xShadowRoot = this.xShadowHost.attachShadow({ mode: "open" }); + oGrammalecte.createStyle("content_scripts/menu.css", null, this.xShadowRoot); + this.xShadowRoot.appendChild(this.xButton); + document.body.appendChild(this.xShadowHost); } else { if (!document.getElementById("grammalecte_cssmenu")) { oGrammalecte.createStyle("content_scripts/menu.css", "grammalecte_cssmenu", document.head); }