From f8023f0348bba150af0dafaf9ea9c7f4cf96a11f Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bal=C3=A1zs=20Sz=C3=BCcs?= Date: Sun, 15 Jun 2025 00:53:01 +0200 Subject: [PATCH] fix warning about JS syntax --- .../src/main/resources/templates/convert/eml-to-pdf.html | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/stirling-pdf/src/main/resources/templates/convert/eml-to-pdf.html b/stirling-pdf/src/main/resources/templates/convert/eml-to-pdf.html index 2179c7dfc..e3b469ab9 100644 --- a/stirling-pdf/src/main/resources/templates/convert/eml-to-pdf.html +++ b/stirling-pdf/src/main/resources/templates/convert/eml-to-pdf.html @@ -78,11 +78,12 @@ const pdfOnlyOptions = document.getElementById('pdfOnlyOptions'); const submitBtn = document.getElementById('submitBtn'); const submitText = /*[[#{EMLToPDF.submit}]]*/ 'Convert to PDF'; + const downloadHtmlText = 'Download HTML intermediate file instead of PDF'; function updateFormState() { if (pdfOnlyOptions && submitBtn) { pdfOnlyOptions.style.display = downloadHtml.checked ? 'none' : 'block'; - submitBtn.textContent = downloadHtml.checked ? /*[[#{EMLToPDF.downloadHtml}]]*/ 'Download HTML' : submitText; + submitBtn.textContent = downloadHtml.checked ? downloadHtmlText : submitText; } }