@@ -2,7 +2,7 @@ import { getCurrentHub } from '@sentry/core';
2
2
import type { BrowserClientReplayOptions , Integration } from '@sentry/types' ;
3
3
import { dropUndefinedKeys } from '@sentry/utils' ;
4
4
5
- import { DEFAULT_FLUSH_MAX_DELAY , DEFAULT_FLUSH_MIN_DELAY , MASK_ALL_TEXT_SELECTOR } from './constants' ;
5
+ import { DEFAULT_FLUSH_MAX_DELAY , DEFAULT_FLUSH_MIN_DELAY } from './constants' ;
6
6
import { ReplayContainer } from './replay' ;
7
7
import type { RecordingOptions , ReplayConfiguration , ReplayPluginOptions } from './types' ;
8
8
import { getPrivacyOptions } from './util/getPrivacyOptions' ;
@@ -53,7 +53,7 @@ export class Replay implements Integration {
53
53
_experiments = { } ,
54
54
sessionSampleRate,
55
55
errorSampleRate,
56
- maskAllText,
56
+ maskAllText = true ,
57
57
maskAllInputs = true ,
58
58
blockAllMedia = true ,
59
59
@@ -113,7 +113,7 @@ export class Replay implements Integration {
113
113
sessionSampleRate,
114
114
errorSampleRate,
115
115
useCompression,
116
- maskAllText : typeof maskAllText === 'boolean' ? maskAllText : ! maskTextSelector ,
116
+ maskAllText,
117
117
blockAllMedia,
118
118
_experiments,
119
119
} ;
@@ -142,13 +142,6 @@ Sentry.init({ replaysOnErrorSampleRate: ${errorSampleRate} })`,
142
142
this . _initialOptions . errorSampleRate = errorSampleRate ;
143
143
}
144
144
145
- if ( this . _initialOptions . maskAllText ) {
146
- // `maskAllText` is a more user friendly option to configure
147
- // `maskTextSelector`. This means that all nodes will have their text
148
- // content masked.
149
- this . _recordingOptions . maskTextSelector = MASK_ALL_TEXT_SELECTOR ;
150
- }
151
-
152
145
if ( this . _initialOptions . blockAllMedia ) {
153
146
// `blockAllMedia` is a more user friendly option to configure blocking
154
147
// embedded media elements
0 commit comments