mirror of
https://github.com/Frooodle/Stirling-PDF.git
synced 2025-09-12 17:52:13 +02:00
Translation support has been added.
This commit is contained in:
parent
5938e18e2e
commit
5a7f52f748
@ -53,9 +53,10 @@ function setupFileInput(chooser) {
|
||||
});
|
||||
|
||||
// Handle form validation if the input is left empty
|
||||
fileInput.addEventListener("invalid", (e)=>{
|
||||
e.preventDefault();
|
||||
alert('Please select a PDF file before submitting.')
|
||||
fileInput.addEventListener("invalid", (e) => {
|
||||
e.preventDefault();
|
||||
alert(pdfPrompt);
|
||||
console.log(escapeHtml(translations.selectPDF));
|
||||
});
|
||||
|
||||
const dragenterListener = function () {
|
||||
|
Loading…
Reference in New Issue
Block a user