fix
Some checks failed
Deploy / deploy (build, debian, 22) (push) Has been cancelled
Deploy / deploy (build:staging, school, 8822) (push) Has been cancelled

This commit is contained in:
2026-03-16 17:55:49 +08:00
parent 7e65340f63
commit 040e4e3253

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") ?? []