[BACK]Return to form.min.js CVS log [TXT][DIR] Up to [local] / draft

Diff for /draft/form.min.js between version 1.97 and 1.98

version 1.97, 2024/03/31 17:05:41 version 1.98, 2024/03/31 17:14:06
Line 65  async function sendData() {
Line 65  async function sendData() {
                                         const data = JSON.stringify({"add": mail, "sub": subj, "msg": mess, "tok": token});                                          const data = JSON.stringify({"add": mail, "sub": subj, "msg": mess, "tok": token});
                                         turnstile.remove();                                          turnstile.remove();
                                         info.textContent+="Sending...";                                          info.textContent+="Sending...";
                                         console.log(data);  //                                      console.log(data);
                                         fetch("/feedbk/", {                                          fetch("/feedbk/", {
                                                 headers: { "Content-Type": "application/json" },                                                  headers: { "Content-Type": "application/json" },
                                                 credentials: "same-origin",                                                  credentials: "same-origin",
Line 74  async function sendData() {
Line 74  async function sendData() {
                                                 body: data                                                  body: data
                                         })                                          })
                                         .then(response => response.json())                                          .then(response => response.json())
                                         .then(json => info.textContent=json['msg'])                                          .then(json => info.textContent=parseString(json['msg']))
                                 }                                  }
                         });                          });
                 });                  });

Legend:
Removed from v.1.97  
changed lines
  Added in v.1.98

https://cvs.kroczynski.net