Skip to content

Commit

Permalink
Merge pull request #60 from cedricdelpoux/patch-1
Browse files Browse the repository at this point in the history
Supports SSR
  • Loading branch information
jsonkao authored Dec 2, 2020
2 parents 288369d + 92a89a0 commit 74a8ca7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Scrollama.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ class Scrollama extends Component {
// stores step elements by id
stepElIds = [];

viewH = window.innerHeight;
viewH = typeof window !== undefined ? window.innerHeight : 0;
pageH = 0;
offsetVal = 0;
offsetMargin = 0;
Expand Down

0 comments on commit 74a8ca7

Please sign in to comment.