react-sticky
Advanced tools
Comparing version 4.0.0-rc8 to 4.0.0-rc9
@@ -28,9 +28,11 @@ 'use strict'; | ||
*/ | ||
events.forEach(function (evt) { | ||
if (window.addEventListener) { | ||
window.addEventListener(evt, handleEvent); | ||
} else { | ||
window.attachEvent('on' + evt, handleEvent); | ||
} | ||
}); | ||
if (typeof window !== "undefined") { | ||
events.forEach(function (evt) { | ||
if (window.addEventListener) { | ||
window.addEventListener(evt, handleEvent); | ||
} else { | ||
window.attachEvent('on' + evt, handleEvent); | ||
} | ||
}); | ||
} | ||
@@ -37,0 +39,0 @@ return signal; |
{ | ||
"name": "react-sticky", | ||
"version": "4.0.0-rc8", | ||
"version": "4.0.0-rc9", | ||
"description": "Sticky component for React", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
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
32480
568