Skip to content

Commit

Permalink
Merge pull request #22 from MoTrPAC/21_JZ_Code_Vulnerability
Browse files Browse the repository at this point in the history
Resolved vulnerability alerts.
  • Loading branch information
jimmyzhen authored Apr 1, 2024
2 parents fb55588 + 7d94f55 commit 163ced8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/google-analytics.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,10 +12,10 @@ const trackingId = () => {
let analyticsTrackerHostname = document.location.hostname;

// match hostname to google analytics domain identified for tracker
if (/^(www\.)?extrameta.org/.test(analyticsTrackerHostname)) {
if (/^(www\.)?extrameta\.org\//.test(analyticsTrackerHostname)) {
// production app
analyticsTrackerHostname = 'extrameta.org';
} else if (/^test.extra-meta.org/.test(analyticsTrackerHostname)) {
} else if (/^test\.extra-meta\.org\//.test(analyticsTrackerHostname)) {
// test app
analyticsTrackerHostname = 'test.extra-meta.org';
} else {
Expand Down

0 comments on commit 163ced8

Please sign in to comment.