Skip to content

Commit ec0e981

Browse files
fix(replays): Show the correct Replay config option name maskFn (#6988)
* fix(replays): Show the correct Replay config option name `maskFn` * style(lint): Auto commit lint changes --------- Co-authored-by: getsantry[bot] <66042841+getsantry[bot]@users.noreply.github.com>
1 parent bde17b2 commit ec0e981

File tree

1 file changed

+3
-3
lines changed
  • src/platforms/javascript/common/session-replay

1 file changed

+3
-3
lines changed

src/platforms/javascript/common/session-replay/privacy.mdx

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,12 +35,12 @@ The following options can be configured as options to the integration, in `new R
3535
| key | type | default | description |
3636
| ------------- | ------------------------ | ---------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
3737
| mask | string[] | `.sentry-mask, [data-sentry-mask]` | Mask all elements that match the given DOM selectors. See [Masking](#masking) section for an example. Note that any configured selectors will be in _addition_ to the defaults. |
38-
| maskAllText | boolean | `true` | Mask _all_ text content. Will pass text content through `maskTextFn` before sending to server. |
39-
| maskAllInputs | boolean | `true` | Mask values of `<input>` elements. Passes input values through `maskTextFn` before sending to server. |
38+
| maskAllText | boolean | `true` | Mask _all_ text content. Will pass text content through `maskFn` before sending to server. |
39+
| maskAllInputs | boolean | `true` | Mask values of `<input>` elements. Passes input values through `maskFn` before sending to server. |
4040
| block | string[] | `.sentry-block, [data-sentry-block]` | Redact all elements that match the DOM selector(s). See [Blocking](#blocking) section for an example. Note that any configured selectors will be in _addition_ to the defaults. |
4141
| blockAllMedia | boolean | `true` | Block _all_ media elements (`img`, `svg`, `video`, `object`, `picture`, `embed`, `map`, `audio`). |
4242
| ignore | string[] | `.sentry-ignore, [data-sentry-ignore]` | Ignores all events on the matching input fields. See [Ignoring](#ignoring) above for an example. |
43-
| maskTextFn | (text: string) => string | `(text) => '*'.repeat(text.length)` | Function to customize how text content is masked before sending to server. By default, masks text with `*`. |
43+
| maskFn | (text: string) => string | `(text) => '*'.repeat(text.length)` | Function to customize how text content is masked before sending to server. By default, masks text with `*`. |
4444
| unblock | string[] | `.sentry-unblock, [data-sentry-unblock]` | Don't redact any elements that match the DOM selectors. Used to unblock specific media elements that are blocked with `blockAllMedia`. This doesn't affect sensitive elements such as `password`. |
4545
| unmask | string[] | `.sentry-unmask, [data-sentry-unmask]` | Unmask all elements that match the given DOM selectors. Used to unmask specific elements that are masked with `maskAllText`. |
4646

0 commit comments

Comments
 (0)