Skip to content

Commit

Permalink
fix: added window for navigator
Browse files Browse the repository at this point in the history
  • Loading branch information
yjb94 committed Jan 23, 2020
1 parent d158418 commit ba44f0d
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 0 additions & 1 deletion demo/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@ class Demo extends Component {
<ReactStoreBadges
platform={'ios'}
url={'https://apps.apple.com/app/'}
locale={'en-us'}
/>

<ReactStoreBadges
Expand Down
2 changes: 1 addition & 1 deletion src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import React from 'react';
const ReactStoreBadges = ({
url,
platform,
locale = navigator.language,
locale = window.navigator.language,
width = 135,
height = 40,
}) => {
Expand Down

0 comments on commit ba44f0d

Please sign in to comment.