diff options
author | 2018-10-30 19:15:54 +0300 | |
---|---|---|
committer | 2023-01-13 10:37:53 +0300 | |
commit | 29c872a86a14e0f16b1cb114c514ef624d2e63bf (patch) | |
tree | 99280f30796931cc4484a8b7d2e82d956f4ae70b /vnext/src/components/Header.js | |
parent | a35213803066df368658d6dfa8451ee9b1ab97f3 (diff) |
Fix lint warnings
Diffstat (limited to 'vnext/src/components/Header.js')
-rw-r--r-- | vnext/src/components/Header.js | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/vnext/src/components/Header.js b/vnext/src/components/Header.js index 68375d48..69477c16 100644 --- a/vnext/src/components/Header.js +++ b/vnext/src/components/Header.js @@ -14,10 +14,10 @@ export default class Header extends React.Component { this.wScrollDiff = 0; this.header = React.createRef(); } - componentDidMount() { - window.addEventListener('scroll', () => (!window.requestAnimationFrame) - ? this.throttle(250, this.updateHeader) - : window.requestAnimationFrame(this.updateHeader), false); + componentDidMount() { + window.addEventListener('scroll', () => (!window.requestAnimationFrame) + ? this.throttle(250, this.updateHeader) + : window.requestAnimationFrame(this.updateHeader), false); } throttle(delay, fn) { var last, deferTimer; |