Skip to content

Commit

Permalink
Fixed language detection in IE10
Browse files Browse the repository at this point in the history
Fixed #21.
  • Loading branch information
patw0929 committed Aug 9, 2017
1 parent 1b2acae commit 87fc6ab
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/SmartBanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ class SmartBanner extends Component {
static defaultProps = {
daysHidden: 15,
daysReminder: 90,
appStoreLanguage: isClient ? (window.navigator.language.slice(-2) ||
window.navigator.userLanguage.slice(-2) || 'us') : 'us',
appStoreLanguage: isClient ?
(window.navigator.language || window.navigator.userLanguage).slice(-2) || 'us' : 'us',
button: 'View',
storeText: {
ios: 'On the App Store',
Expand Down

0 comments on commit 87fc6ab

Please sign in to comment.