Server now works and compiles

This commit is contained in:
2018-07-01 11:17:29 +10:00
parent 05f3e4a51e
commit 7ef7ee6d35
7 changed files with 195 additions and 21 deletions

View File

@ -57,6 +57,7 @@ class ElementScrollFader extends React.Component {
}
checkEffect() {
if(typeof window === typeof undefined) return;
if(!this.refs || !this.refs.fader) return;
//Get bounds
var rect = this.refs.fader.getBoundingClientRect();