fix: move SERVER_WEBHOOK const before initServerLocations() call to avoid temporal dead zone
This commit is contained in:
+1
-1
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user