revert typo on checking if upload is image

This commit is contained in:
javl
2023-05-05 21:54:44 +02:00
parent e7f41eb338
commit 70853abd9a
+1 -1
View File
@@ -742,7 +742,7 @@ function handleImageSelection(evt) {
for (let i = 0; files[i]; i++) { for (let i = 0; files[i]; i++) {
// Only process image files. // Only process image files.
if (files[i].type.match('image.*')) { if (!files[i].type.match('image.*')) {
onlyImagesFileError.style.display = 'block'; onlyImagesFileError.style.display = 'block';
// eslint-disable-next-line no-continue // eslint-disable-next-line no-continue
continue; continue;