fix: do not use window outside main function (#95)
fix: do not use window outside main function (#95)

This adds support for SSR.

Closes #94.

francoischalifour/medium-zoom,francoischalifour/medium-zoom,francoischalifour/medium-zoom