jsonkao / react-scrollama

Simple scrollytelling with the IntersectionObserver in React.
https://jsonkao.github.io/react-scrollama
MIT License
390 stars 30 forks source link

SSR fix #61

Closed Lane closed 3 years ago

Lane commented 3 years ago

The previous commit to fix builds with server side rendering does not work correctly, as typeof window is equal to "undefined" instead of undefined when the window is not defined.

jsonkao commented 3 years ago

haha oops, appreciate the fix!

jsonkao commented 3 years ago

just released a patch