react-animate-height
Advanced tools
Comparing version 2.1.1 to 2.1.2
# Changelog | ||
### v2.1.1 | ||
### v2.1.1, v2.1.2 | ||
@@ -5,0 +5,0 @@ 12.04.2022. |
@@ -136,4 +136,4 @@ 'use strict'; | ||
if (isBrowser) { | ||
_this.prefersReducedMotion = matchMedia('(prefers-reduced-motion)').matches; | ||
if (isBrowser && window.matchMedia) { | ||
_this.prefersReducedMotion = window.matchMedia('(prefers-reduced-motion)').matches; | ||
} | ||
@@ -140,0 +140,0 @@ |
{ | ||
"name": "react-animate-height", | ||
"version": "2.1.1", | ||
"version": "2.1.2", | ||
"description": "Lightweight React component for animating height using CSS transitions.", | ||
@@ -5,0 +5,0 @@ "main": "lib/AnimateHeight.js", |
@@ -110,4 +110,4 @@ import React from 'react'; | ||
if (isBrowser) { | ||
this.prefersReducedMotion = matchMedia('(prefers-reduced-motion)').matches; | ||
if (isBrowser && window.matchMedia) { | ||
this.prefersReducedMotion = window.matchMedia('(prefers-reduced-motion)').matches; | ||
} | ||
@@ -114,0 +114,0 @@ |
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
50894
13
836