fix: move SERVER_WEBHOOK const before initServerLocations() call to avoid temporal dead zone

This commit is contained in:
Oliver
2026-06-14 17:01:46 -03:00
parent 19183b42a8
commit a886c650c7
+1 -1
View File
@@ -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");