fix: drag'n'drop ignore file extension case

This commit is contained in:
Mylloon 2024-05-12 17:40:51 +02:00
parent 6c0f8e70d8
commit 85cabf536c
Signed by: Anri
GPG key ID: A82D63DFF8D1317F

View file

@ -34,7 +34,9 @@ const getFiles = async () => {
// Exit if a file isn't supported in the list // Exit if a file isn't supported in the list
if ( if (
files.filter((file) => files.filter((file) =>
allowedExtensions.some((ext) => file.endsWith(ext)) allowedExtensions.some((ext) =>
file.toLowerCase().endsWith(ext.toLowerCase())
)
).length !== files.length ).length !== files.length
) { ) {
await internals.exit(); await internals.exit();