Skip to content

Commit

Permalink
Merge remote-tracking branch 'origin/upgrade-puppeteer-2' into fix-ad…
Browse files Browse the repository at this point in the history
…opted-style-sheets
  • Loading branch information
YunFeng0817 committed Jan 9, 2023
2 parents d0a2719 + 0ce9db9 commit 3ba2e08
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/rrweb/test/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,6 +185,14 @@ function stringifySnapshots(snapshots: eventWithTime[]): string {
}
}
});
} else if (
s.type === EventType.IncrementalSnapshot &&
s.data.source === IncrementalSource.MediaInteraction
) {
// round the currentTime to 1 decimal place
if (s.data.currentTime) {
s.data.currentTime = Math.round(s.data.currentTime * 10) / 10;
}
}
delete (s as Optional<eventWithTime, 'timestamp'>).timestamp;
return s as event;
Expand Down

0 comments on commit 3ba2e08

Please sign in to comment.