mirror of
https://github.com/javl/image2cpp.git
synced 2026-10-27 06:20:26 +00:00
revert typo on checking if upload is image
This commit is contained in:
1 parent
e7f41eb338
commit
70853abd9a
1 file changed
+1
-1
+1
-1
@@ -742,7 +742,7 @@ function handleImageSelection(evt) {
|
||||
|
||||
for (let i = 0; files[i]; i++) {
|
||||
// Only process image files.
|
||||
if (files[i].type.match('image.*')) {
|
||||
if (!files[i].type.match('image.*')) {
|
||||
onlyImagesFileError.style.display = 'block';
|
||||
// eslint-disable-next-line no-continue
|
||||
continue;
|
||||
|
||||
Reference in new issue
Block a user