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

Diff for /draft/form.min.js between version 1.99 and 1.100

version 1.99, 2024/04/01 19:04:36 version 1.100, 2024/04/02 06:30:42
Line 64  async function sendData() {
Line 64  async function sendData() {
                                 callback: function(token) {                                  callback: function(token) {
                                         const data = JSON.stringify({"add": mail, "sub": subj, "msg": mess, "tok": token});                                          const data = JSON.stringify({"add": mail, "sub": subj, "msg": mess, "tok": token});
                                         info.textContent="Sending...";                                          info.textContent="Sending...";
 //                                      console.log(data);  
                                         fetch("/feedbk/", {                                          fetch("/feedbk/", {
                                                 headers: { "Content-Type": "application/json" },                                                  headers: { "Content-Type": "application/json" },
                                                 credentials: "same-origin",                                                  credentials: "same-origin",
Line 73  async function sendData() {
Line 72  async function sendData() {
                                                 body: data                                                  body: data
                                         })                                          })
                                         .then(response => response.json())                                          .then(response => response.json())
                                         .then(json => info.textContent=parseString(json['msg']))                                          .then(json => info.textContent=json['msg'])
                                         .then(turnstile.remove());                                          .then(turnstile.remove());
                                 }                                  }
                         });                          });

Legend:
Removed from v.1.99  
changed lines
  Added in v.1.100

https://cvs.kroczynski.net