We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 288369d + 92a89a0 commit 74a8ca7Copy full SHA for 74a8ca7
src/Scrollama.js
@@ -27,7 +27,7 @@ class Scrollama extends Component {
27
// stores step elements by id
28
stepElIds = [];
29
30
- viewH = window.innerHeight;
+ viewH = typeof window !== undefined ? window.innerHeight : 0;
31
pageH = 0;
32
offsetVal = 0;
33
offsetMargin = 0;
0 commit comments