From 971ca1c4e38cb30b9bc116f71cdf04b2312d6055 Mon Sep 17 00:00:00 2001 From: Peter Joles Date: Sat, 18 Apr 2020 08:24:09 -0700 Subject: [PATCH] Remove polluted env variables from vue --- src/utils/leopardConfig.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/utils/leopardConfig.js b/src/utils/leopardConfig.js index a93c3784..e438c829 100644 --- a/src/utils/leopardConfig.js +++ b/src/utils/leopardConfig.js @@ -26,7 +26,10 @@ export default { hideArtificalSolutionsBranding: getEnvValue("VUE_APP_HIDE_AS_BRANDING", false), loadFreshConfigForNewSessions: getEnvValue("VUE_APP_LOAD_FRESH_CONFIG_FOR_NEW_SESSIONS", false), mustGetStaticDefaultConfig: getEnvValue("VUE_APP_GET_STATIC_DEFAULT_CONFIG", false), - requestParams: getEnvValue("VUE_APP_REQUEST_PARAMS", ""), + requestParams: + getEnvValue("VUE_APP_REQUEST_PARAMS").indexOf("CURL") !== -1 + ? "" + : getEnvValue("VUE_APP_REQUEST_PARAMS"), liveChat: { licenseKey: getEnvValue("VUE_APP_LIVE_CHAT_INC_KEY"), agentAssistServerUrl: getEnvValue("VUE_APP_LIVE_CHAT_AGENT_ASSIST_SERVER")