This commit is contained in:
dcore94 2023-04-12 15:56:52 +02:00
parent 1ac7bbe3d1
commit 7c6f460cc9
1 changed files with 1 additions and 1 deletions

View File

@ -519,7 +519,7 @@ class CCPExecutionHistory extends HTMLElement {
apply : (e,d)=>e.setAttribute("data-index", d.id),
on_click: (ev)=>{
const id = ev.target.getAttribute("data-index")
const lang = ev.target.parentElement.querySelector("select[name=language-selector]")
const lang = ev.target.parentElement.querySelector("select[name=language-selector]").value
this.generateCode(id, lang)
}
},