mirror of
https://github.com/javl/image2cpp.git
synced 2026-07-28 04:05:35 +00:00
revert typo on checking if upload is image
This commit is contained in:
+1
-1
@@ -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;
|
||||||
|
|||||||
Reference in New Issue
Block a user