=================================================================== RCS file: /cvs/cvs/draft/form.min.js,v retrieving revision 1.32 retrieving revision 1.35 diff -u -p -r1.32 -r1.35 --- draft/form.min.js 2024/03/28 20:02:23 1.32 +++ draft/form.min.js 2024/03/28 20:10:52 1.35 @@ -51,7 +51,7 @@ async function sendData() { // console.log("Data: " + data + "\nStatus: " + status); //}); /* --------------------- */ -var response=""; +var re=""; fetch('/feedbk/', { method: 'POST', headers: { @@ -59,9 +59,10 @@ fetch('/feedbk/', { 'Content-Type': 'application/json' }, body: JSON.stringify({ "cfem": "a@b.ru", "cfsu" : "subject", "cfme" : "message", "cfto" : "token" }) -}) - .then(response => response.json()) - .then(response => console.log(JSON.stringify(response))) +}); + // .then(response => response.json()) + // .then(response => console.log(JSON.stringify(response))) + console.log(response.text()); },