fix: move SERVER_WEBHOOK const before initServerLocations() call

This commit is contained in:
Oliver
2026-06-14 17:06:02 -03:00
parent adf210f48e
commit 25e20ac75c
+1 -1
View File
@@ -287,6 +287,7 @@ document
.getElementById("pricing-period")
.addEventListener("change", updatePeriodDisplay);
updatePeriodDisplay(); // fire on load so yearly bonuses show by default
const SERVER_WEBHOOK = "https://n8n.derez.ai/webhook/server";
initServerLocations(); // fetch live server availability
/* ── Capture UTM params from URL ──────────────────────────── */
@@ -300,7 +301,6 @@ 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");