#125_fehler_im_kontaktformular #126

Merged
muli merged 8 commits from #125_fehler_im_kontaktformular into main 2022-08-24 22:41:22 +02:00
Showing only changes of commit 0882053a42 - Show all commits

View File

@ -16,10 +16,19 @@ window.addEventListener('DOMContentLoaded', function(event) {
mode: 'same-origin',
body: formData,
})
.then(response => response.json())
.then(response => {
if (!response.ok) {
throw new Error('Response was not OK');
}
return response.json();
})
.then(json => {
console.log(json);
})
.catch(error => {
console.error('Could not start the session:', error);
});
});
contact_form.addEventListener('submit', function(event) {