react-scroll-parallax
Advanced tools
Comparing version 2.4.1 to 2.4.2
@@ -16,3 +16,8 @@ "use strict"; | ||
var parallaxController = (0, _react.useContext)(_ParallaxContext.default); | ||
var isServer = typeof window === 'undefined'; | ||
if (isServer) { | ||
return null; | ||
} | ||
if (!parallaxController) { | ||
@@ -19,0 +24,0 @@ throw new Error('Could not find `react-scroll-parallax` context value. Please ensure the component is wrapped in a <ParallaxProvider>'); |
{ | ||
"name": "react-scroll-parallax", | ||
"version": "2.4.1", | ||
"version": "2.4.2", | ||
"description": "React components to create parallax scroll effects for banners, images or any other DOM elements.", | ||
@@ -5,0 +5,0 @@ "repository": { |
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
81627
1333