Skip to content

Commit

Permalink
IE11 does not have Number.isNaN
Browse files Browse the repository at this point in the history
  • Loading branch information
Chris Joel authored and cdata committed Feb 27, 2019
1 parent 17a9567 commit 607d473
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/three-components/StaticShadow.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ export default class StaticShadow extends Mesh {

set intensity(intensity) {
const intensityIsNumber =
typeof intensity === 'number' && !Number.isNaN(intensity);
typeof intensity === 'number' && !self.isNaN(intensity);

this.material.opacity =
BASE_SHADOW_OPACITY * (intensityIsNumber ? intensity : 0.0);
Expand Down

0 comments on commit 607d473

Please sign in to comment.