Skip to content

Conversation

muffinresearch
Copy link
Contributor

// whereas the previous behaviour was to only return 'android' for FF Android.
// This way we are showing more relevant content, and if we prompt for the user to download
// firefox we can prompt them to download Firefox for Android.
if (userAgentString.includes('Android')) {
Copy link
Contributor

Choose a reason for hiding this comment

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

should this be case insensitive? Or do we not worry about that?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

All the strings I found seem to have 'Android' title-case but it won't hurt to make it check lower-case .

@kumar303
Copy link
Contributor

r+wc

@muffinresearch muffinresearch force-pushed the add-user-agent-app-lookup branch from cceafe8 to ca8d061 Compare July 28, 2016 11:32
@muffinresearch muffinresearch merged commit cb36be4 into mozilla:master Jul 28, 2016
@muffinresearch muffinresearch deleted the add-user-agent-app-lookup branch July 28, 2016 11: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.

Parse UA string for client application.

2 participants