feat: Arrow functions aufgeräumt und Fehlerbehandlung ergänzt. (#105)
This commit is contained in:
parent
e267a58b80
commit
c248229a61
@ -29,5 +29,6 @@ contact_form.addEventListener('submit', function(event) {
|
|||||||
body: formData,
|
body: formData,
|
||||||
})
|
})
|
||||||
.then(response => response.json())
|
.then(response => response.json())
|
||||||
.then(json => {console.log(json)});
|
.then(json => console.log(json))
|
||||||
|
.catch(error => console.log(error));
|
||||||
}, false);
|
}, false);
|
||||||
|
Loading…
Reference in New Issue
Block a user