fix warning about JS syntax

This commit is contained in:
Balázs Szücs 2025-06-15 00:53:01 +02:00
parent e31f58e486
commit f8023f0348

View File

@ -78,11 +78,12 @@
const pdfOnlyOptions = document.getElementById('pdfOnlyOptions'); const pdfOnlyOptions = document.getElementById('pdfOnlyOptions');
const submitBtn = document.getElementById('submitBtn'); const submitBtn = document.getElementById('submitBtn');
const submitText = /*[[#{EMLToPDF.submit}]]*/ 'Convert to PDF'; const submitText = /*[[#{EMLToPDF.submit}]]*/ 'Convert to PDF';
const downloadHtmlText = 'Download HTML intermediate file instead of PDF';
function updateFormState() { function updateFormState() {
if (pdfOnlyOptions && submitBtn) { if (pdfOnlyOptions && submitBtn) {
pdfOnlyOptions.style.display = downloadHtml.checked ? 'none' : 'block'; pdfOnlyOptions.style.display = downloadHtml.checked ? 'none' : 'block';
submitBtn.textContent = downloadHtml.checked ? /*[[#{EMLToPDF.downloadHtml}]]*/ 'Download HTML' : submitText; submitBtn.textContent = downloadHtml.checked ? downloadHtmlText : submitText;
} }
} }