From 87a551de41cb3c2a8543d28521f31962760f0d76 Mon Sep 17 00:00:00 2001 From: Ardis Lu Date: Tue, 4 Oct 2022 20:38:15 -0700 Subject: [PATCH] Clear previous status, if any --- index.html | 2 ++ 1 file changed, 2 insertions(+) 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 -- 2.47.3