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

Isomorphism #185

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

Isomorphism #185

wants to merge 4 commits into from

Conversation

appsforartists
Copy link

I replaced your hardcoded references to window so Reqwest can use XHR polyfills when being run on the server. This is the work I referenced in #153.

@@ -32,5 +32,8 @@
"scripts": {
"boosh": "smoosh make ./build.json",
"test": "node ./test.js"
},
"dependencies": {
"xhr2": "0.1.0"
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this is going to add the library to the client. if you build this with ender or browserify i'm not so sure this library will work anymore in the browser (which is its original intention)

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It worked for me in Webpack. I've since moved on to https://github.com/matthew-andrews/isomorphic-fetch

Feel free to make any changes you see fit to make it more generic.

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