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

Fix for web compatibility #21

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

Conversation

buu700
Copy link

@buu700 buu700 commented May 13, 2021

The diff is smaller with ?w=1, but basically just made it conditional whether to use JSDOM or browser DOM depending on the existence of document. eval('require')(...) is used in the Node.js case to avoid getting picked up by web bundlers.

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.

1 participant