=================================================================== RCS file: /cvs/cvs/draft/form.min.js,v retrieving revision 1.97 retrieving revision 1.99 diff -u -p -r1.97 -r1.99 --- draft/form.min.js 2024/03/31 17:05:41 1.97 +++ draft/form.min.js 2024/04/01 19:04:36 1.99 @@ -63,9 +63,8 @@ async function sendData() { }, callback: function(token) { const data = JSON.stringify({"add": mail, "sub": subj, "msg": mess, "tok": token}); - turnstile.remove(); - info.textContent+="Sending..."; - console.log(data); + info.textContent="Sending..."; +// console.log(data); fetch("/feedbk/", { headers: { "Content-Type": "application/json" }, credentials: "same-origin", @@ -74,7 +73,8 @@ async function sendData() { body: data }) .then(response => response.json()) - .then(json => info.textContent=json['msg']) + .then(json => info.textContent=parseString(json['msg'])) + .then(turnstile.remove()); } }); });