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

Diff for /draft/form.min.js between version 1.53 and 1.60

version 1.53, 2024/03/29 20:53:10 version 1.60, 2024/03/29 21:23:10
Line 60  async function sendData() {
Line 60  async function sendData() {
 const dataToSend = JSON.stringify({"email": "hey@mail.com", "password": "101010"});  const dataToSend = JSON.stringify({"email": "hey@mail.com", "password": "101010"});
 let dataReceived = "";  let dataReceived = "";
 fetch("/feedbk/", {  fetch("/feedbk/", {
    credentials: "same-origin",      credentials: "same-origin",
     mode: "same-origin",      mode: "same-origin",
     method: "post",      method: "post",
     headers: { "Content-Type": "application/json" },      headers: { "Content-Type": "application/json" },
Line 75  fetch("/feedbk/", {
Line 75  fetch("/feedbk/", {
         }          }
     })      })
     .then(dataJson => {      .then(dataJson => {
         dataReceived = JSON.parse(dataJson)          console.log(dataReceived);
     })      })
     .catch(err => {      .catch(err => {
         if (err === "server") return          if (err === "server") return
         console.log(err)          console.log(err)
     })      })
 console.log(`Received: ${dataReceived}`)  
   //fetch('https://draft.hgk.global/feedbk/')
   //      .then(response => response.json())
   //      .then(json => console.log(json))
   
   
   
                                 },                                  },
                         });                          });

Legend:
Removed from v.1.53  
changed lines
  Added in v.1.60

https://cvs.kroczynski.net