Skip to content

Commit

Permalink
Temp fix for the crashing side effect
Browse files Browse the repository at this point in the history
  • Loading branch information
pinarol committed Jul 3, 2019
1 parent a4eec97 commit 1acb437
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/compose/src/hooks/use-reduced-motion/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import useMediaQuery from '../use-media-query';
*
* @type {boolean}
*/
const IS_IE = window.navigator.userAgent.indexOf( 'Trident' ) >= 0;
const IS_IE = window.navigator.userAgent ? window.navigator.userAgent.indexOf( 'Trident' ) >= 0 : false;

/**
* Hook returning whether the user has a preference for reduced motion.
Expand Down

0 comments on commit 1acb437

Please sign in to comment.