Skip to content

Commit

Permalink
Add new option to slimDOMOptions type with tsdoc as suggested by Justin
Browse files Browse the repository at this point in the history
  • Loading branch information
eoghanmurray committed Jun 6, 2024
1 parent f5ad097 commit 7eb049c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions packages/rrweb-snapshot/src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -169,6 +169,10 @@ export type SlimDOMOptions = Partial<{
headMetaHttpEquiv: boolean;
headMetaAuthorship: boolean;
headMetaVerification: boolean;
/**
* blocks title tag 'animations' which can generate a lot of mutations that aren't usually displayed in replayers
**/
headTitleMutations: boolean;
}>;

export type DataURLOptions = Partial<{
Expand Down
2 changes: 1 addition & 1 deletion packages/rrweb/src/record/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -174,7 +174,7 @@ function record<T = eventWithTime>(
// as they destroy some (hidden) info:
headMetaAuthorship: _slimDOMOptions === 'all',
headMetaDescKeywords: _slimDOMOptions === 'all',
headTitleMutations: _slimDOMOptions === 'all', // block title tag 'animation' which can generate a lot of mutations that aren't usually displayed in replayers
headTitleMutations: _slimDOMOptions === 'all',
}
: _slimDOMOptions
? _slimDOMOptions
Expand Down

0 comments on commit 7eb049c

Please sign in to comment.