This commit is contained in:
Timothy Jaeryang Baek
2025-12-21 18:08:36 +04:00
parent 7746e9f4b8
commit c96549eaa7
7 changed files with 170 additions and 71 deletions
@@ -15,12 +15,14 @@
let url = '';
const submitHandler = () => {
const urls = url
let urls = url
.split('\n')
.map((u) => u.trim())
.filter((u) => u !== '')
.filter((u) => isValidHttpUrl(u));
urls = [...new Set(urls)];
if (urls.length === 0) {
toast.error($i18n.t('Please enter a valid URL.'));
return;