Skip to content

Commit 37e4882

Browse files
authored
fix: copy button on non highlight blocks (#23)
1 parent 0958ace commit 37e4882

File tree

1 file changed

+0
-2
lines changed

1 file changed

+0
-2
lines changed

assets/js/code-copy.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,6 @@ function CopyCode(clipboard) {
2525
if (pre.parentNode.classList.contains('highlight')) {
2626
var highlight = pre.parentNode;
2727
highlight.parentNode.insertBefore(button, highlight);
28-
} else {
29-
pre.parentNode.insertBefore(button, pre);
3028
}
3129
});
3230
}

0 commit comments

Comments
 (0)