From 70853abd9a7c58a98f084a01e212724c38273f93 Mon Sep 17 00:00:00 2001 From: javl Date: Fri, 5 May 2023 21:54:44 +0200 Subject: [PATCH] revert typo on checking if upload is image --- js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/script.js b/js/script.js index e6f2cb1..81f0850 100644 --- a/js/script.js +++ b/js/script.js @@ -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;