This commit is contained in:
xuyue committed 2026-03-16 17:55:49 +08:00
1 parent 7e65340f63
commit 040e4e3253
1 file changed
+3
+3
View File
@@ -56,6 +56,9 @@ async function getContent() {
}
function addButton() {
const existing = $content.value?.querySelectorAll(".codeblock-action") ?? []
for (const el of existing) el.remove()
const action = document.createElement("div")
action.className = "codeblock-action"
const pres = $content.value?.querySelectorAll("pre") ?? []