Skip to content

Commit

Permalink
Clean up
Browse files Browse the repository at this point in the history
  • Loading branch information
allisonking committed Feb 13, 2023
1 parent fd2c083 commit 62e1e41
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 10 deletions.
7 changes: 0 additions & 7 deletions clients/privacy-center/common/browser-identities.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,15 +51,8 @@ export const inspectForBrowserIdentities = ():
.filter((c) => c.startsWith(`${cookieConfig.cookieKey}=`))[0];

if (thisCookie) {
// if (cookieConfig.regex) {
const match = thisCookie.match(cookieConfig.regex ?? DEFAULT_REGEX);
browserIdentities[cookieConfig.key] = match ? match[1] : undefined;
// } else {
// // eslint-disable-next-line prefer-destructuring
// browserIdentities[cookieConfig.key] = thisCookie.split(
// `${cookieConfig.cookieKey}=`
// )[1];
// }
}
});

Expand Down
3 changes: 0 additions & 3 deletions clients/privacy-center/pages/consent.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -217,9 +217,6 @@ const Consent: NextPage = () => {
}));

const browserIdentity = inspectForBrowserIdentities();
// const browserIdentityBody = browserIdentity
// ? { ga_client_id: browserIdentity.gaClientId }
// : undefined;

updateConsentRequestPreferencesMutationTrigger({
id: consentRequestId,
Expand Down

0 comments on commit 62e1e41

Please sign in to comment.