Skip to content

Commit

Permalink
Fix for issue rrweb-io#890
Browse files Browse the repository at this point in the history
  • Loading branch information
dkozlovskyi committed May 9, 2022
1 parent a0e6641 commit 84b33d8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/rrweb/src/record/mutation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -270,7 +270,7 @@ export default class MutationBuffer {
// ensure shadowHost is a Node, or doc.contains will throw an error
const notInDoc =
!this.doc.contains(n) &&
(rootShadowHost === null || !this.doc.contains(rootShadowHost));
(!rootShadowHost || !this.doc.contains(rootShadowHost));
if (!n.parentNode || notInDoc) {
return;
}
Expand Down

0 comments on commit 84b33d8

Please sign in to comment.