@@ -2,7 +2,7 @@ import { getCurrentHub } from '@sentry/core';
22import type { BrowserClientReplayOptions , Integration } from '@sentry/types' ;
33import { dropUndefinedKeys } from '@sentry/utils' ;
44
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' ;
66import { ReplayContainer } from './replay' ;
77import type { RecordingOptions , ReplayConfiguration , ReplayPluginOptions } from './types' ;
88import { getPrivacyOptions } from './util/getPrivacyOptions' ;
@@ -53,7 +53,7 @@ export class Replay implements Integration {
5353 _experiments = { } ,
5454 sessionSampleRate,
5555 errorSampleRate,
56- maskAllText,
56+ maskAllText = true ,
5757 maskAllInputs = true ,
5858 blockAllMedia = true ,
5959
@@ -113,7 +113,7 @@ export class Replay implements Integration {
113113 sessionSampleRate,
114114 errorSampleRate,
115115 useCompression,
116- maskAllText : typeof maskAllText === 'boolean' ? maskAllText : ! maskTextSelector ,
116+ maskAllText,
117117 blockAllMedia,
118118 _experiments,
119119 } ;
@@ -142,13 +142,6 @@ Sentry.init({ replaysOnErrorSampleRate: ${errorSampleRate} })`,
142142 this . _initialOptions . errorSampleRate = errorSampleRate ;
143143 }
144144
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-
152145 if ( this . _initialOptions . blockAllMedia ) {
153146 // `blockAllMedia` is a more user friendly option to configure blocking
154147 // embedded media elements
0 commit comments