From 2bfd8617cacf4f2baeac0ce8c9ef2c874f64b885 Mon Sep 17 00:00:00 2001 From: Tariq Soliman Date: Thu, 26 Sep 2024 14:14:53 -0700 Subject: [PATCH] configure-beta calls / logic --- configure/src/core/calls.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/configure/src/core/calls.js b/configure/src/core/calls.js index 6b5acad6..1399be75 100644 --- a/configure/src/core/calls.js +++ b/configure/src/core/calls.js @@ -1,7 +1,8 @@ -const domain = +let domain = window.mmgisglobal.NODE_ENV === "development" ? "http://localhost:8888/" - : (window.mmgisglobal.ROOT_PATH || "") + "/"; + : window.mmgisglobal.ROOT_PATH || ""; +if (domain.length > 0 && !domain.endsWith("/")) domain += "/"; const c = { missionPath: "Missions/",