Update index.js
Browse files
index.js
CHANGED
@@ -383,7 +383,10 @@ uploadInput.addEventListener('change', (e) => {
|
|
383 |
});
|
384 |
|
385 |
|
386 |
-
form.addEventListener('submit', () => {
|
|
|
|
|
|
|
387 |
if (!currentImage || !currentQuery) {
|
388 |
status.textContent = 'Please select an image and type a prompt';
|
389 |
} else {
|
|
|
383 |
});
|
384 |
|
385 |
|
386 |
+
form.addEventListener('submit', (e) => {
|
387 |
+
e.preventDefault();
|
388 |
+
e.stopPropagation();
|
389 |
+
|
390 |
if (!currentImage || !currentQuery) {
|
391 |
status.textContent = 'Please select an image and type a prompt';
|
392 |
} else {
|