From dce9481a148de498a868a8f8284c1991cd037465 Mon Sep 17 00:00:00 2001 From: dcore94 Date: Wed, 12 Apr 2023 16:05:40 +0200 Subject: [PATCH] fixed filename according to language --- ccp/js/executionhistorycontroller.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/ccp/js/executionhistorycontroller.js b/ccp/js/executionhistorycontroller.js index ae3050c..df11852 100644 --- a/ccp/js/executionhistorycontroller.js +++ b/ccp/js/executionhistorycontroller.js @@ -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}`) } },