Skip to content

Commit efc2769

Browse files
committed
do not expose (un)maskInputSelector options
1 parent 4c8dc37 commit efc2769

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

packages/replay/src/integration.ts

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -57,22 +57,23 @@ export class Replay implements Integration {
5757
blockClass = 'sentry-block',
5858
ignoreClass = 'sentry-ignore',
5959
maskTextClass = 'sentry-mask',
60-
maskInputSelector = '.sentry-mask',
61-
unmaskInputSelector = '.sentry-unmask',
6260
unmaskTextSelector = '.sentry-unmask',
6361
blockSelector = '[data-sentry-block]',
6462
...recordingOptions
6563
}: ReplayConfiguration = {}) {
6664
this.recordingOptions = {
6765
maskAllInputs,
6866
blockClass,
67+
blockSelector,
6968
ignoreClass,
7069
maskTextClass,
7170
maskTextSelector,
7271
unmaskTextSelector,
73-
unmaskInputSelector,
74-
maskInputSelector,
75-
blockSelector,
72+
73+
// We are making the decision to make these selectors the same
74+
unmaskInputSelector: unmaskTextSelector,
75+
maskInputSelector: maskTextSelector,
76+
7677
...recordingOptions,
7778
};
7879

0 commit comments

Comments
 (0)