diff --git a/src/context.js b/src/context.js index 09e13c5..3a7f651 100644 --- a/src/context.js +++ b/src/context.js @@ -172,11 +172,12 @@ class PageBuilder extends ScriptAndStyleContext { let pageContextControlPanel = frameworkControlPanel(this._extensions); pageContextControlPanel = pageContextControlPanel.generate(); - document.querySelector('body') - .insertAdjacentElement( - "afterbegin", - pageContextControlPanel.html - ); + docBody.insertAdjacentElement( + "afterbegin", + pageContextControlPanel.html + ); + } + } compelgroups = this._groups; }