version bump and build

This commit is contained in:
2019-06-27 14:26:23 +02:00
parent 68a8301cd5
commit f3c5bfcd83
2 changed files with 3 additions and 3 deletions

View File

@@ -611,8 +611,8 @@ var CookieConsent = function (_Component) {
this.setState({ visible: true });
}
// if acceptOnScroll is set to true and cookie is undefined or debug is set to true, add a listener.
if (this.props.acceptOnScroll && _jsCookie2.default.get(cookieName) === undefined || debug) {
// if acceptOnScroll is set to true and (cookie is undefined or debug is set to true), add a listener.
if (this.props.acceptOnScroll && (_jsCookie2.default.get(cookieName) === undefined || debug)) {
window.addEventListener("scroll", this.handleScroll, { passive: true });
}
}