FormidableLabs / spectacle

A React-based library for creating sleek presentations using JSX syntax that gives you the ability to live demo your code.
https://commerce.nearform.com/open-source/spectacle/
MIT License
9.71k stars 690 forks source link

add a wrapper to make window safe for SSR #1246

Closed addisonj closed 1 year ago

addisonj commented 1 year ago

Description

This commit wraps the window for safe usage in an SSR env (like next.js)

This should be a non functional change for any users running only in browser

Type of Change

How Has This Been Tested?

This has been run locally using SSR

Checklist: (Feel free to delete this section upon completion)