Skip to content

Commit

Permalink
fix(core): don't record removal of donottrack
Browse files Browse the repository at this point in the history
  • Loading branch information
blakebyrnes committed Jan 13, 2022
1 parent 573e6f9 commit d5fd604
Showing 1 changed file with 4 additions and 5 deletions.
9 changes: 4 additions & 5 deletions core/injected-scripts/pageEventsRecorder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -625,11 +625,6 @@ class PageEventsRecorder {
if (action === DomActionType.added) {
this.nodeIdToParentNodeId[serial.id] = serial.parentNodeId;

// don't include this if it's hero id
if (this.doNotTrackElementsById.has(serial.id)) {
return;
}

if (this.doNotTrackElementsById.has(serial.previousSiblingId)) {
// get previous node that's tracked
let previousNode: ChildNode = this.doNotTrackElementsById.get(serial.previousSiblingId);
Expand All @@ -641,6 +636,10 @@ class PageEventsRecorder {
serial.previousSiblingId = nodeId;
}
}
// don't include this if it's hero id
if (this.doNotTrackElementsById.has(serial.id)) {
return;
}
this.domChanges.push([action, serial, timestamp, idx()]);
}
}
Expand Down

0 comments on commit d5fd604

Please sign in to comment.