fix
This commit is contained in:
1 parent
83cd62a110
commit
88d6ffaf53
15 files changed
+762
-189
No files matched your search
@@ -85,7 +85,9 @@ function flash(btn: HTMLButtonElement, done: string, original: string) {
|
||||
|
||||
function setupCodeActions() {
|
||||
$content.value?.addEventListener("click", (e: MouseEvent) => {
|
||||
const btn = (e.target as HTMLElement).closest<HTMLButtonElement>("[data-action]")
|
||||
const btn = (e.target as HTMLElement).closest<HTMLButtonElement>(
|
||||
"[data-action]",
|
||||
)
|
||||
if (!btn) return
|
||||
const wrapper = btn.closest<HTMLElement>("[data-lang]")!
|
||||
const lang = wrapper.dataset.lang ?? "html"
|
||||
|
||||
Reference in new issue
Block a user