Skip to content

Commit

Permalink
Fix undefined navigator
Browse files Browse the repository at this point in the history
  • Loading branch information
thalytafabrine committed May 17, 2021
1 parent ed84053 commit 70aa637
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.

## [Unreleased]

### Fixed

- Error with `undefined` navigator.

## [9.141.0] - 2021-05-13

### Fixed
Expand Down
4 changes: 2 additions & 2 deletions react/components/NumericStepper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -285,8 +285,8 @@ class NumericStepper extends Component {

const touchDevice =
'ontouchstart' in window ||
navigator.maxTouchPoints ||
navigator.msMaxTouchPoints
(typeof navigator !== 'undefined' &&
(navigator?.maxTouchPoints || navigator?.msMaxTouchPoints))

const content = (
<React.Fragment>
Expand Down

0 comments on commit 70aa637

Please sign in to comment.