Skip to content

Commit

Permalink
Update src/features/session_replay/shared/recorder.js
Browse files Browse the repository at this point in the history
Co-authored-by: Chunwai Li <[email protected]>
  • Loading branch information
metal-messiah and cwli24 authored Sep 19, 2024
1 parent 0d4d66a commit 71db396
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/features/session_replay/shared/recorder.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export class Recorder {
const { block_class, ignore_class, mask_text_class, block_selector, mask_input_options, mask_text_selector, mask_all_inputs, inline_images, collect_fonts } = getConfigurationValue(this.parent.agentIdentifier, 'session_replay')
const customMasker = (text, element) => {
try {
if (element?.type?.toLowerCase?.() !== 'password' && (element?.dataset?.nrUnmask !== undefined || element?.classList?.contains('nr-unmask'))) return text
if (typeof element?.type === 'string' && element.type.toLowerCase() !== 'password' && (element?.dataset?.nrUnmask !== undefined || element?.classList?.contains('nr-unmask'))) return text

Check failure on line 77 in src/features/session_replay/shared/recorder.js

View workflow job for this annotation

GitHub Actions / ESLint / Run ESLint

Multiple spaces found before 'element'
} catch (err) {
// likely an element was passed to this handler that was invalid and was missing attributes or methods
}
Expand Down

0 comments on commit 71db396

Please sign in to comment.