Skip to content

Commit

Permalink
Remove unnecessary symbol in memo value for getUidFlag
Browse files Browse the repository at this point in the history
commit_hash:113dab93a56854d7dc8c953ab525e86f4abf1650
  • Loading branch information
sabio committed Dec 16, 2024
1 parent 46485ed commit a561744
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions src/middleware/watchSyncFlags/brinfoFlags/uid.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,11 @@ import {
IFRAME_MESSAGE_DUID,
} from 'src/utils/iframeConnector';

// Uses iframeConnector parent domain id, that is written in counterFirstHit/waitParentDuid middleware
/**
* For TP browsers in iframe context try to
* use iframeConnector parent domain id,
* that is written in counterFirstHit/waitParentDuid middleware.
*/
export const getSelfOrParentUid = (ctx: Window, opt: CounterOptions) => {
if (!isTP(ctx) || !isIframe(ctx)) {
return getUid(ctx, opt);
Expand All @@ -26,7 +30,5 @@ export const getSelfOrParentUid = (ctx: Window, opt: CounterOptions) => {

export const getUidFlag = memo(
getSelfOrParentUid,
(ctx: Window, opt: CounterOptions) => {
return `{${opt.ldc}${opt.noCookie}`;
},
(ctx: Window, opt: CounterOptions) => `${opt.ldc}${opt.noCookie}`,
);

0 comments on commit a561744

Please sign in to comment.