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 5a089b6a2a
commit 2af9144fcb

View File

@ -29,5 +29,6 @@ contact_form.addEventListener('submit', function(event) {
body: formData,
})
.then(response => response.json())
.then(json => {console.log(json)});
.then(json => console.log(json))
.catch(error => console.log(error));
}, false);