aboutsummaryrefslogtreecommitdiff
path: root/vnext/src/components/Header.js
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-10-30 19:15:54 +0300
committerGravatar Vitaly Takmazov2023-01-13 10:37:53 +0300
commit29c872a86a14e0f16b1cb114c514ef624d2e63bf (patch)
tree99280f30796931cc4484a8b7d2e82d956f4ae70b /vnext/src/components/Header.js
parenta35213803066df368658d6dfa8451ee9b1ab97f3 (diff)
Fix lint warnings
Diffstat (limited to 'vnext/src/components/Header.js')
-rw-r--r--vnext/src/components/Header.js8
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;