From 2af9144fcbed1f3f82d536ec6791eadceb4c04ef Mon Sep 17 00:00:00 2001 From: muli Date: Thu, 16 Jun 2022 16:52:20 +0200 Subject: [PATCH] =?UTF-8?q?feat:=20Arrow=20functions=20aufger=C3=A4umt=20u?= =?UTF-8?q?nd=20Fehlerbehandlung=20erg=C3=A4nzt.=20(#105)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- assets/js/contact_form.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/assets/js/contact_form.js b/assets/js/contact_form.js index 9f90099..5300af3 100644 --- a/assets/js/contact_form.js +++ b/assets/js/contact_form.js @@ -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);