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 ───────────────────────────── */
|
/* ── 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");
|
||||||
@@ -640,7 +641,6 @@ async function chatSend() {
|
|||||||
})();
|
})();
|
||||||
|
|
||||||
/* ── Server Locations (live seat availability) ──────── */
|
/* ── Server Locations (live seat availability) ──────── */
|
||||||
const SERVER_WEBHOOK = "https://n8n.derez.ai/webhook/server";
|
|
||||||
|
|
||||||
async function initServerLocations() {
|
async function initServerLocations() {
|
||||||
const sel = document.getElementById("pricing-location");
|
const sel = document.getElementById("pricing-location");
|
||||||
|
|||||||
Reference in New Issue
Block a user