version 1.18, 2024/03/28 18:50:37 |
version 1.19, 2024/03/28 18:57:11 |
Line 46 async function sendData() { |
|
Line 46 async function sendData() { |
|
console.log(`Challenge Success ${token}`); |
console.log(`Challenge Success ${token}`); |
/* ---------- */ |
/* ---------- */ |
try { |
try { |
|
console.log(`TRY`); |
const response = await fetch("https://draft.hgk.global/feedbk/", { |
const response = await fetch("https://draft.hgk.global/feedbk/", { |
method: "POST", |
method: "POST", |
body: formData, |
body: formData, |
}); |
}); |
|
console.log(`AWAIT`); |
console.log(await response.text()); |
console.log(await response.text()); |
|
console.log(`RESPONSE`); |
} catch (e) { |
} catch (e) { |
|
console.log(`ERROR`); |
console.error(e); |
console.error(e); |
} |
} |
} |
} |