mirror of
https://github.com/chenasraf/clarity.git
synced 2026-05-17 17:48:05 +00:00
renaming to conversions
This commit is contained in:
@@ -21,7 +21,7 @@ let config: Config = {
|
||||
dob: null,
|
||||
delayDom: false,
|
||||
throttleDom: true,
|
||||
clickText: false
|
||||
conversions: false
|
||||
};
|
||||
|
||||
export default config;
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
2
packages/clarity-js/types/core.d.ts
vendored
2
packages/clarity-js/types/core.d.ts
vendored
@@ -139,7 +139,7 @@ export interface Config {
|
||||
dob?: number;
|
||||
delayDom?: boolean;
|
||||
throttleDom?: boolean;
|
||||
clickText?: boolean;
|
||||
conversions?: boolean;
|
||||
}
|
||||
|
||||
export const enum Constant {
|
||||
|
||||
Reference in New Issue
Block a user