fixed filename according to language

This commit is contained in:
dcore94 2023-04-12 16:05:40 +02:00
parent 844eee3d1c
commit dce9481a14
1 changed files with 1 additions and 1 deletions

View File

@ -521,7 +521,7 @@ class CCPExecutionHistory extends HTMLElement {
const id = ev.target.getAttribute("data-index")
const langsel = ev.target.parentElement.querySelector("select[name=language-selector]")
const lang = langsel.value
const ext = langsel.getAttribute("data-ext")
const ext = langsel.selectedOptions[0].getAttribute("data-ext")
this.generateCode(id, lang, `${id}.${ext}`)
}
},