Compare commits
2 Commits
ecb09be213
...
ed8734ff76
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
ed8734ff76 | ||
|
|
f59f546d37 |
@@ -118,8 +118,7 @@
|
|||||||
document.getElementById("uuidDisplay").textContent = uuid ? uuid.toLowerCase() : "-";
|
document.getElementById("uuidDisplay").textContent = uuid ? uuid.toLowerCase() : "-";
|
||||||
|
|
||||||
|
|
||||||
const webhookBase = "https://002-001-5dd6e535-4d1c-46bc-9bd9-42ad4bc5f082.odoo4projects.com/webhook/0c8536be-d175-4740-8e78-123159193b23";
|
const webhookBase = "https://002-001-5dd6e535-4d1c-46bc-9bd9-42ad4bc5f082.odoo4projects.com/webhook/0c8536be-d175-4740-8e78-123159193b23?uuid=${uuid}";
|
||||||
const webhookGet = `/get-data?uuid=${uuid}`;
|
|
||||||
const webhookPost = `${webhookBase}/submit-data`;
|
const webhookPost = `${webhookBase}/submit-data`;
|
||||||
|
|
||||||
async function loadData() {
|
async function loadData() {
|
||||||
@@ -128,6 +127,7 @@ async function loadData() {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
|
console.log(webhookBase)
|
||||||
const res = await fetch(webhookBase); // Fetching the webhook JSON
|
const res = await fetch(webhookBase); // Fetching the webhook JSON
|
||||||
if (!res.ok) throw new Error("Failed to fetch data");
|
if (!res.ok) throw new Error("Failed to fetch data");
|
||||||
const data = await res.json();
|
const data = await res.json();
|
||||||
|
|||||||
Reference in New Issue
Block a user