From: Ardis Lu Date: Wed, 5 Oct 2022 03:38:15 +0000 (-0700) Subject: Clear previous status, if any X-Git-Url: https://git.ardis.lu/?a=commitdiff_plain;h=87a551de41cb3c2a8543d28521f31962760f0d76;p=ens2hex Clear previous status, if any --- diff --git a/index.html b/index.html index 9f4ce0b..c2bef53 100644 --- a/index.html +++ b/index.html @@ -299,6 +299,8 @@ 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