]> git.ardis.lu - ens2hex/commitdiff
Clear previous status, if any
authorArdis Lu <ardisglu@gmail.com>
Wed, 5 Oct 2022 03:38:15 +0000 (20:38 -0700)
committerArdis Lu <ardisglu@gmail.com>
Wed, 5 Oct 2022 03:38:15 +0000 (20:38 -0700)
index.html

index 9f4ce0bbb2e5b2e7912d3dca84e7dd65c667f563..c2bef53c1b91625231d5226dad251f9fb19b56a3 100644 (file)
       event.preventDefault();
 
       const status = event.target.elements['status'];
+      status.textContent = ''; // Clear previous status, if any
+
       const formData = new FormData(event.target);
       const combined = `${formData.get('text')}\n${await formData.get('file').text()}`; // Concatenate textarea and file inputs
       const parsed = new Set(combined.split('\n').map(c => c.split(',')).flat().map(e => e.trim())); // Split on newline or comma, flatten, trim whitespace, de-duplicate
This page took 0.037544 seconds and 4 git commands to generate.