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

Make window.navigator.userAgent check more defensive for React Native. #3975

Merged
merged 2 commits into from
Oct 5, 2018

Conversation

amhinson
Copy link
Contributor

@amhinson amhinson commented Oct 3, 2018

There is currently a bug involving window.navigator when running apollo-client with React Native (see issue here: #3137).

This PR simply adds one more additional check before accessing indexOf.

@apollo-cla
Copy link

@amhinson: Thank you for submitting a pull request! Before we can merge it, you'll need to sign the Meteor Contributor Agreement here: https://contribute.meteor.com/

@benjamn benjamn changed the title Fix DevTools chrome check for React Native Make window.navigator.userAgent check more defensive for React Native. Oct 5, 2018
@benjamn benjamn merged commit a56475c into apollographql:master Oct 5, 2018
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Feb 17, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants