(props: Props)
| 58 | } |
| 59 | |
| 60 | constructor(props: Props) { |
| 61 | super(props) |
| 62 | |
| 63 | if (props.location.query.code) { |
| 64 | this.fetchEndpoint(props.location.query.code) |
| 65 | } |
| 66 | |
| 67 | this.state = { |
| 68 | showLayover: false, |
| 69 | storedState: getStoredState(), |
| 70 | expandNavButtons: false, |
| 71 | showNav: false, |
| 72 | } |
| 73 | |
| 74 | if (getStoredState().initialLoadTimestamp === null) { |
| 75 | update(['initialLoadTimestamp'], Date.now()) |
| 76 | } |
| 77 | |
| 78 | this.onScroll = throttle(this.onScroll.bind(this), 100) |
| 79 | } |
| 80 | |
| 81 | componentDidMount() { |
| 82 | window.addEventListener('scroll', this.onScroll, false) |
nothing calls this directly
no test coverage detected