Fix maskInputFn is ignored during the creation of the full snapshot (#1386)
Fix that the optional `maskInputFn` was being accidentally ignored during the creation of the full snapshot
This commit is contained in:
6
.changeset/beige-olives-roll.md
Normal file
6
.changeset/beige-olives-roll.md
Normal file
@@ -0,0 +1,6 @@
|
|||||||
|
---
|
||||||
|
"rrweb-snapshot": patch
|
||||||
|
"rrweb": patch
|
||||||
|
---
|
||||||
|
|
||||||
|
Fix that the optional `maskInputFn` was being accidentally ignored during the creation of the full snapshot
|
||||||
@@ -1271,7 +1271,7 @@ function snapshot(
|
|||||||
inlineStylesheet?: boolean;
|
inlineStylesheet?: boolean;
|
||||||
maskAllInputs?: boolean | MaskInputOptions;
|
maskAllInputs?: boolean | MaskInputOptions;
|
||||||
maskTextFn?: MaskTextFn;
|
maskTextFn?: MaskTextFn;
|
||||||
maskInputFn?: MaskTextFn;
|
maskInputFn?: MaskInputFn;
|
||||||
slimDOM?: 'all' | boolean | SlimDOMOptions;
|
slimDOM?: 'all' | boolean | SlimDOMOptions;
|
||||||
dataURLOptions?: DataURLOptions;
|
dataURLOptions?: DataURLOptions;
|
||||||
inlineImages?: boolean;
|
inlineImages?: boolean;
|
||||||
|
|||||||
@@ -383,6 +383,7 @@ function record<T = eventWithTime>(
|
|||||||
inlineStylesheet,
|
inlineStylesheet,
|
||||||
maskAllInputs: maskInputOptions,
|
maskAllInputs: maskInputOptions,
|
||||||
maskTextFn,
|
maskTextFn,
|
||||||
|
maskInputFn,
|
||||||
slimDOM: slimDOMOptions,
|
slimDOM: slimDOMOptions,
|
||||||
dataURLOptions,
|
dataURLOptions,
|
||||||
recordCanvas,
|
recordCanvas,
|
||||||
|
|||||||
Reference in New Issue
Block a user