Skip to content

Commit

Permalink
fix: Insert shinylive button without breaking code copy btn (#107)
Browse files Browse the repository at this point in the history
  • Loading branch information
gadenbuie authored Feb 16, 2024
1 parent ab7e5ae commit d75ffa4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include-in-header.html
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@

const btnCopy = el.querySelector(".code-copy-button");
if (btnCopy) {
btnCopy.parentElement.insertBefore(link, btnCopy);
btnCopy.parentElement.appendChild(link);
} else {
if (el.matches("pre")) {
el.appendChild(link);
Expand Down

0 comments on commit d75ffa4

Please sign in to comment.