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

fix: Check for performance.timing in webworkers #2491

Merged
merged 5 commits into from
Mar 12, 2020
Merged

fix: Check for performance.timing in webworkers #2491

merged 5 commits into from
Mar 12, 2020

Conversation

HazAT
Copy link
Member

@HazAT HazAT commented Mar 12, 2020

Fixes #2488

@HazAT HazAT requested a review from rhcarvalho March 12, 2020 08:49
@HazAT HazAT requested a review from kamilogorek as a code owner March 12, 2020 08:49
@HazAT HazAT self-assigned this Mar 12, 2020
Comment on lines 375 to 383
// tslint:disable-next-line:deprecation
if (!performance.timing) {
return performanceFallback;
}
// tslint:disable-next-line:deprecation
if (!performance.timing.navigationStart) {
return performanceFallback;
}

Copy link
Contributor

Choose a reason for hiding this comment

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

I think this is too early? We may have access to performance.timeOrigin and that's our preferred value to use.

@getsentry-bot
Copy link
Contributor

Messages
📖

@sentry/browser bundle gzip'ed minified size: (ES5: 16.8887 kB) (ES6: 15.9277 kB)

📖 ✅ TSLint passed

Generated by 🚫 dangerJS against 2b93d5c

@HazAT HazAT merged commit c629a0d into master Mar 12, 2020
@HazAT HazAT deleted the fix/timing branch March 12, 2020 09:15
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.

TypeError: null is not an object (evaluating 'performance.timing.navigationStart') in web worker!
4 participants