Skip to content

Commit

Permalink
renaming to conversions
Browse files Browse the repository at this point in the history
  • Loading branch information
Sam Martin committed Jun 14, 2024
1 parent da7df8a commit c73462d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion packages/clarity-js/src/core/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ let config: Config = {
dob: null,
delayDom: false,
throttleDom: true,
clickText: false
conversions: false
};

export default config;
2 changes: 1 addition & 1 deletion packages/clarity-js/src/insight/snapshot.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function target(evt: UIEvent): Node {
}

export function metadata(node: Node): TargetMetadata {
let output: TargetMetadata = { id: 0, hash: null, privacy: config.clickText ? Privacy.Snapshot : Privacy.Text, node };
let output: TargetMetadata = { id: 0, hash: null, privacy: config.conversions ? Privacy.Text : Privacy.Snapshot, node };
if (node) { output.id = idMap.has(node) ? idMap.get(node) : getId(node); }
return output;
}
Expand Down
2 changes: 1 addition & 1 deletion packages/clarity-js/types/core.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -139,7 +139,7 @@ export interface Config {
dob?: number;
delayDom?: boolean;
throttleDom?: boolean;
clickText?: boolean;
conversions?: boolean;
}

export const enum Constant {
Expand Down

0 comments on commit c73462d

Please sign in to comment.