Skip to content
This repository has been archived by the owner on Mar 1, 2024. It is now read-only.

Commit

Permalink
Merge pull request #33 from buildo/linto-fix-1487153509642
Browse files Browse the repository at this point in the history
💄  linto fix
  • Loading branch information
FrancescoCioria authored Feb 15, 2017
2 parents 1ae50f5 + 82962f0 commit 3ba36a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/CookieBanner.js
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ export default class CookieBanner extends React.Component {
const _props = props || this.props;
if (!this.state.listeningScroll && !this.hasAcceptedCookies() && _props.dismissOnScroll) {
if (window.attachEvent) {
//Internet Explorer
// Internet Explorer
window.attachEvent('onscroll', this.onScroll);
} else if (window.addEventListener) {
window.addEventListener('scroll', this.onScroll, false);
Expand All @@ -76,7 +76,7 @@ export default class CookieBanner extends React.Component {
removeOnScrollListener = () => {
if (this.state.listeningScroll) {
if (window.detachEvent) {
//Internet Explorer
// Internet Explorer
window.detachEvent('onscroll', this.onScroll);
} else if (window.removeEventListener) {
window.removeEventListener('scroll', this.onScroll, false);
Expand Down

0 comments on commit 3ba36a3

Please sign in to comment.