We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c1850c2 commit e4365fdCopy full SHA for e4365fd
src/Scrollama.js
@@ -27,7 +27,7 @@ class Scrollama extends Component {
27
// stores step elements by id
28
stepElIds = [];
29
30
- viewH = typeof window !== undefined ? window.innerHeight : 0;
+ viewH = typeof window !== 'undefined' ? window.innerHeight : 0;
31
pageH = 0;
32
offsetVal = 0;
33
offsetMargin = 0;
0 commit comments