Skip to content

Commit

Permalink
Make window.navigator.userAgent check more defensive for React Native (
Browse files Browse the repository at this point in the history
  • Loading branch information
amhinson authored and benjamn committed Oct 5, 2018
1 parent 4230ff1 commit a56475c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/apollo-client/src/ApolloClient.ts
Original file line number Diff line number Diff line change
Expand Up @@ -171,6 +171,7 @@ export default class ApolloClient<TCacheShape> implements DataProxy {
// Only for Chrome
if (
window.navigator &&
window.navigator.userAgent &&
window.navigator.userAgent.indexOf('Chrome') > -1
) {
// tslint:disable-next-line
Expand Down

0 comments on commit a56475c

Please sign in to comment.