Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: upgrade rrweb for playback #21368

Merged
merged 7 commits into from
Apr 8, 2024
Merged

Conversation

daibhin
Copy link
Contributor

@daibhin daibhin commented Apr 5, 2024

Problem

Connected to PostHog/posthog-js#1115

Changes

Does this work well for both Cloud and self-hosted?

Yes

How did you test this code?

Ensured replays (including canvas playback) still works

Comment on lines +9 to +12
+ onError: (e) => {
+ // maintain the existing behaviour of throwing if no handler is provided
+ throw e;
+ },
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Very difficult to parse this patch but it's just this change and adding a try / catch

Comment on lines +518 to +520
+ } catch (error) {
+ this.config.onError(error);
}
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

End of the try / catch

- id: lastPosition.id,
- debugData: d,
- };
+ try {
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Start of try catch

@daibhin daibhin requested a review from a team April 5, 2024 13:52
Copy link
Contributor

github-actions bot commented Apr 5, 2024

Size Change: 0 B

Total Size: 824 kB

ℹ️ View Unchanged
Filename Size
frontend/dist/toolbar.js 824 kB

compressed-size-action

@daibhin daibhin merged commit 4b1c253 into master Apr 8, 2024
83 checks passed
@daibhin daibhin deleted the dn-chore/upgrade-rrweb-frontend branch April 8, 2024 10:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants