Skip to content

Commit

Permalink
feat(core): add do not track nodes to recorder
Browse files Browse the repository at this point in the history
  • Loading branch information
blakebyrnes committed Sep 24, 2021
1 parent f8fa235 commit 023ec28
Show file tree
Hide file tree
Showing 5 changed files with 148 additions and 120 deletions.
1 change: 1 addition & 0 deletions core/injected-scripts/domReplayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@ class DomReplayer {

public loadPaintEvents(newPaintEvents: IFrontendDomChangeEvent[][]): void {
this.paintEvents = newPaintEvents;
this.loadedIndex = -1;
debugLog('Loaded PaintEvents', newPaintEvents);
}

Expand Down
3 changes: 3 additions & 0 deletions core/injected-scripts/interactReplayer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -335,6 +335,9 @@ function createReplayItems() {
isInitialized = true;

replayNode = document.createElement('hero-replay');
if ('doNotTrackElement' in window) {
window.doNotTrackElement(replayNode);
}
replayNode.style.zIndex = '2147483647';

replayShadow = replayNode.attachShadow({ mode: 'closed' });
Expand Down
Loading

0 comments on commit 023ec28

Please sign in to comment.