From 25e20ac75cf5022f1fe404974a48ef1306c2139d Mon Sep 17 00:00:00 2001 From: Oliver Date: Sun, 14 Jun 2026 17:06:02 -0300 Subject: [PATCH] fix: move SERVER_WEBHOOK const before initServerLocations() call --- 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 847e3f3..6664924 100644 --- a/assets/js/script.js +++ b/assets/js/script.js @@ -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");