-
-
Notifications
You must be signed in to change notification settings - Fork 1.7k
Handle JavaScript loaded in a blob #1322
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
Conversation
@CaptObvious moved your commit to this PR so I could add tests and make some minor changes :) |
Damn, nice. |
You could have done that in the previous PR - I had the setting enabled to allow maintainers to edit it. Out of curiousity, why |
I don't like to force push to someone else's forks and I had to do this, as I rebased some changes from master. Commit is still authored as yours though :)
|
Fair enough :)
Good tip, thanks! I'm fairly new to JS so I'm still in the "whatever works" phase. |
vendor/TraceKit/tracekit.js
Outdated
// sourceMappingURL is usually at the end of the file. | ||
source = source.substr(source.length - 300); | ||
// We trim the source down to the last 300 characters as sourceMappingURL is always at the end of the file. | ||
// Why 300? To be in line with: https://github.com/getsentry/sentry/blob/4af29e8f2350e20c28a6933354e4f42437b4ba42/src/sentry/lang/javascript/processor.py#L164-L175 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You spotted where I got 300 from, nice 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Haha, I'm surprised you found it! :D
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah, nice work @CaptObvious
@CaptObvious released as |
Just ignore the SauceLabs. It's randomly failing due to timeouts, but I rebooted it few times and all browsers are green.