fix: move SERVER_WEBHOOK const before initServerLocations() call
This commit is contained in:
+1
-1
@@ -287,6 +287,7 @@ document
|
|||||||
.getElementById("pricing-period")
|
.getElementById("pricing-period")
|
||||||
.addEventListener("change", updatePeriodDisplay);
|
.addEventListener("change", updatePeriodDisplay);
|
||||||
updatePeriodDisplay(); // fire on load so yearly bonuses show by default
|
updatePeriodDisplay(); // fire on load so yearly bonuses show by default
|
||||||
|
const SERVER_WEBHOOK = "https://n8n.derez.ai/webhook/server";
|
||||||
initServerLocations(); // fetch live server availability
|
initServerLocations(); // fetch live server availability
|
||||||
|
|
||||||
/* ── Capture UTM params from URL ──────────────────────────── */
|
/* ── Capture UTM params from URL ──────────────────────────── */
|
||||||
@@ -300,7 +301,6 @@ initServerLocations(); // fetch live server availability
|
|||||||
|
|
||||||
/* ── Buy Agent Webhook ───────────────────────────── */
|
/* ── Buy Agent Webhook ───────────────────────────── */
|
||||||
const ORDER_WEBHOOK = "https://n8n.derez.ai/webhook/payment";
|
const ORDER_WEBHOOK = "https://n8n.derez.ai/webhook/payment";
|
||||||
const SERVER_WEBHOOK = "https://n8n.derez.ai/webhook/server";
|
|
||||||
|
|
||||||
function showPricingToast(msg) {
|
function showPricingToast(msg) {
|
||||||
const el = document.getElementById("pricing-toast");
|
const el = document.getElementById("pricing-toast");
|
||||||
|
|||||||
Reference in New Issue
Block a user