forked from ag_kommunikation/webseite
feat: Arrow functions aufgeräumt und Fehlerbehandlung ergänzt. (#105)
This commit is contained in:
parent
5a089b6a2a
commit
2af9144fcb
@ -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