s
This commit is contained in:
@@ -3,7 +3,7 @@ document.addEventListener('DOMContentLoaded', async () => {
|
|||||||
const id = window.location.hostname || "localhost";
|
const id = window.location.hostname || "localhost";
|
||||||
console.log("Detected domain ID:", id);
|
console.log("Detected domain ID:", id);
|
||||||
|
|
||||||
const configUrl = `http://od8n.com/widget/custom/${id}.json`;
|
const configUrl = `https://od8n.com/widget/custom/${id}.json`;
|
||||||
console.log(configUrl);
|
console.log(configUrl);
|
||||||
const response = await fetch(configUrl);
|
const response = await fetch(configUrl);
|
||||||
if (!response.ok) throw new Error(`Config not found at ${configUrl}`);
|
if (!response.ok) throw new Error(`Config not found at ${configUrl}`);
|
||||||
|
|||||||
Reference in New Issue
Block a user