feat: Arrow functions aufgeräumt und Fehlerbehandlung ergänzt. (#105)

This commit is contained in:
muli 2022-06-16 16:52:20 +02:00
parent c610679c10
commit 9649619fb6

View File

@ -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);