Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Use global to provide document for server-side rendering #257

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

toddself
Copy link

We're trying to use this library, but our app does server-side rendering. Since calling require on this library attempts to access the window object, this crashes node on the server-side.

Added the global library to allow for the use of the document object in node as well for server-side rendering.

@coveralls
Copy link

Coverage Status

Coverage decreased (-60.8%) to 9.036% when pulling 606a735 on scriptoLLC:use-global-document into f60dfd7 on Mango:master.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants