fixed filename according to language
This commit is contained in:
parent
844eee3d1c
commit
dce9481a14
|
@ -521,7 +521,7 @@ class CCPExecutionHistory extends HTMLElement {
|
||||||
const id = ev.target.getAttribute("data-index")
|
const id = ev.target.getAttribute("data-index")
|
||||||
const langsel = ev.target.parentElement.querySelector("select[name=language-selector]")
|
const langsel = ev.target.parentElement.querySelector("select[name=language-selector]")
|
||||||
const lang = langsel.value
|
const lang = langsel.value
|
||||||
const ext = langsel.getAttribute("data-ext")
|
const ext = langsel.selectedOptions[0].getAttribute("data-ext")
|
||||||
this.generateCode(id, lang, `${id}.${ext}`)
|
this.generateCode(id, lang, `${id}.${ext}`)
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in New Issue