Skip to content

Conversation

@robertgates55
Copy link
Contributor

…parser to enable better logging of browser/platform/etc to capture

…parser to enable better logging of browser/platform/etc to capture
robertgates55 added a commit that referenced this pull request Aug 20, 2015
Resolved issue collecting userAgent on startup, and added user agent …
@robertgates55 robertgates55 merged commit 30f2a9a into master Aug 20, 2015
@robertgates55
Copy link
Contributor Author

Have run all drone tests with capture logging enabled, and this looks to work nicely.

The issue before (where useragent was coming back as null) was because the captureListener was catching the "run script" event that fetches the useragent on startup; then trying to initiate capture - in most cases the capture initiation was finishing before the UA was fetched, causing the NPE.

I'm not overly happy with the fix (not logging the script to capture if the call contains navigator.userAgent) but couldn't see a neater way without introducing something like isCaptureInitialised() method somewhere, which didn't feel much better.

@robertgates55 robertgates55 deleted the rga-useragent-mods branch August 20, 2015 08:38
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.

3 participants