Spaces:
Running
Running
Tobias Cornille
commited on
Commit
·
54bbd6a
1
Parent(s):
73deef3
Update index.js
Browse files
index.js
CHANGED
@@ -50,7 +50,8 @@ labels.addEventListener('blur', (e) => {
|
|
50 |
}
|
51 |
});
|
52 |
|
53 |
-
form.addEventListener('submit', () => {
|
|
|
54 |
if (img) {
|
55 |
status.textContent = 'Analysing...';
|
56 |
detect();
|
|
|
50 |
}
|
51 |
});
|
52 |
|
53 |
+
form.addEventListener('submit', (e) => {
|
54 |
+
e.preventDefault();
|
55 |
if (img) {
|
56 |
status.textContent = 'Analysing...';
|
57 |
detect();
|