diff --git a/frontend/app.js b/frontend/app.js index dd8066e..5f1a7df 100644 --- a/frontend/app.js +++ b/frontend/app.js @@ -372,8 +372,7 @@ if (btnPing) btnPing.onclick = async () => { dz.addEventListener('drop', (e)=>{ e.preventDefault(); const files = Array.from(e.dataTransfer.files || []); - const accepted = files.filter(f => /^(image|video)\//.test(f.type) || /\.(jpe?g|png|heic|heif|webp|gif|tiff|bmp|mp4|mov|m4v|avi|mkv)$/i.test(f.name)); - accepted.forEach(addItem); + files.forEach(addItem); render(); runQueue(); }); @@ -409,11 +408,7 @@ fi.onchange = () => { suppressClicksUntil = Date.now() + 800; const files = Array.from(fi.files || []); - const accepted = files.filter(f => - /^(image|video)\//.test(f.type) || - /\.(jpe?g|png|heic|heif|webp|gif|tiff|bmp|mp4|mov|m4v|avi|mkv)$/i.test(f.name) - ); - accepted.forEach(addItem); + files.forEach(addItem); render(); runQueue(); diff --git a/frontend/index.html b/frontend/index.html index bf1a9df..4230ead 100644 --- a/frontend/index.html +++ b/frontend/index.html @@ -3,7 +3,7 @@
-