This commit is contained in:
Oliver
2025-07-28 08:24:37 -03:00
parent 95771e4f54
commit 5f419d580f
2 changed files with 80 additions and 5 deletions

View File

@@ -1,10 +1,5 @@
document.addEventListener('DOMContentLoaded', async () => {
try {
const id = window.location.hostname || "localhost";
console.log("Detected domain ID:", id);
const configUrl = `https://od8n.com/widget/custom/${id}.json`;
console.log(configUrl);
const response = await fetch(configUrl);
if (!response.ok) throw new Error(`Config not found at ${configUrl}`);