From a886c650c774a51516eb5a389c528d8a93d77cc1 Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 14 Jun 2026 17:01:46 -0300 Subject: [PATCH] fix: move SERVER_WEBHOOK const before initServerLocations() call to avoid temporal dead zone --- assets/js/script.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/assets/js/script.js b/assets/js/script.js index 5b42ef6..847e3f3 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -300,6 +300,7 @@ initServerLocations(); // fetch live server availability /* ── Buy Agent Webhook ───────────────────────────── */ const ORDER_WEBHOOK = "https://n8n.derez.ai/webhook/payment"; +const SERVER_WEBHOOK = "https://n8n.derez.ai/webhook/server"; function showPricingToast(msg) { const el = document.getElementById("pricing-toast"); @@ -640,7 +641,6 @@ async function chatSend() { })(); /* ── Server Locations (live seat availability) ──────── */ -const SERVER_WEBHOOK = "https://n8n.derez.ai/webhook/server"; async function initServerLocations() { const sel = document.getElementById("pricing-location");