Skip to content

Commit

Permalink
Fix error message
Browse files Browse the repository at this point in the history
  • Loading branch information
woofers authored Aug 17, 2024
1 parent 591d71d commit 2c3f999
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/react-wavify/src/wave.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@ class Wave extends Component {

render () {
if (__isDev__) {
if (!reportedError && typeof navigator !== 'undefined' && navigator.platform === 'ReactNative') {
if (!reportedError && typeof navigator !== 'undefined' && navigator.product === 'ReactNative') {
reportedError = true
throw new Error('react-wavify is not supported in react-native.')
}
Expand Down

0 comments on commit 2c3f999

Please sign in to comment.