Skip to content

Commit

Permalink
Merge pull request #452 from pricefx/feature/defects-fix
Browse files Browse the repository at this point in the history
fix(events): fix
  • Loading branch information
DharmapalP authored Dec 18, 2024
2 parents 7346b7e + b896f6e commit 5aae39b
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion scripts/global-functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,7 +121,12 @@ function getEnvironment() {
};

const keys = Object.keys(envMap);
const result = keys.find((key) => hostname.includes(`${key}`));
let result;
if (hostname === 'localhost') {
result = keys.find((key) => hostname.includes(`${key}`));
} else {
result = keys.find((key) => hostname.includes(`--${key}--`));
}

// Check if the URL is external
if (!result) {
Expand Down

0 comments on commit 5aae39b

Please sign in to comment.