Skip to content

Commit e4365fd

Browse files
authored
gatsby SSR fix
1 parent c1850c2 commit e4365fd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Scrollama.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ class Scrollama extends Component {
2727
// stores step elements by id
2828
stepElIds = [];
2929

30-
viewH = typeof window !== undefined ? window.innerHeight : 0;
30+
viewH = typeof window !== 'undefined' ? window.innerHeight : 0;
3131
pageH = 0;
3232
offsetVal = 0;
3333
offsetMargin = 0;

0 commit comments

Comments
 (0)