Skip to content

Commit

Permalink
Support both referer and referrer on frontend (#650)
Browse files Browse the repository at this point in the history
  • Loading branch information
gjcthinkst authored Feb 26, 2025
1 parent 090d7da commit 36995a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions frontend_vue/src/components/tokens/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -249,6 +249,7 @@ export type HitsType = {
merchant?: string | null;
mail?: string | null;
referer?: string | null;
referrer?: string | null;
location?: string | GeolocationPosition | CoordsType | null;
};

Expand Down
2 changes: 1 addition & 1 deletion frontend_vue/src/utils/incidentAlertService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -166,7 +166,7 @@ export function buildIncidentDetails(
amount: hitAlert.amount || null,
merchant: hitAlert.merchant || null,
mail: hitAlert.mail || null,
referer: hitAlert.referer || null,
referer: hitAlert.referer || hitAlert.referrer || null,
location:
(hitAlert.location &&
locationValue(hitAlert.token_type, hitAlert.location)) ||
Expand Down

0 comments on commit 36995a6

Please sign in to comment.