Skip to content

Commit

Permalink
fix(core/dfn-panel): insert panels before last script
Browse files Browse the repository at this point in the history
  • Loading branch information
sidvishnoi committed Jan 10, 2025
1 parent b2e86c4 commit 4ffd855
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/core/dfn-panel.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,11 @@ export async function run() {
el.tabIndex = 0;
el.setAttribute("aria-haspopup", "dialog");
}
document.body.append(panels);
if (document.body.querySelector("script")) {
document.body.querySelector("script").before(panels);
} else {
document.body.append(panels);
}

const script = document.createElement("script");
script.id = "respec-dfn-panel";
Expand Down

0 comments on commit 4ffd855

Please sign in to comment.