@kerkhoff-ict/solora 2.0.4 → 2.0.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dist/index.js +3 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -1753,7 +1753,9 @@ function initCodeblocks() {
|
|
|
1753
1753
|
const minimizeBtn = block.querySelector(".minimize-btn");
|
|
1754
1754
|
const preContent = block.querySelector(".pre-content");
|
|
1755
1755
|
if (!pre || !preContent) return;
|
|
1756
|
-
if (copyBtn
|
|
1756
|
+
if (copyBtn && copyBtn.classList.contains("btn-in-pre")) {
|
|
1757
|
+
preContent.insertBefore(copyBtn, preContent.firstChild);
|
|
1758
|
+
}
|
|
1757
1759
|
if (copyBtn && !copyBtn.dataset.bound) {
|
|
1758
1760
|
copyBtn.dataset.bound = "true";
|
|
1759
1761
|
copyBtn.addEventListener("click", async () => {
|