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 typeof #9

Closed
wants to merge 3 commits into from
Closed

Conversation

annelorraineuy
Copy link

Removed usages of typeof. Not sure why the src folder was deleted but I put it back. Tested this on my own project which points to my fork of this repo and the validation is working. This is my first time doing this so let me know if there are issues.

@@ -1,6 +1,6 @@
import 'babel-polyfill';

const fetch = typeof window === 'object' ? window.fetch : global.fetch;
const fetch = window === 'object' ? window.fetch : global.fetch;
Copy link
Owner

Choose a reason for hiding this comment

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

I don't think this test is right

@sibelius
Copy link
Owner

@annelorraineuy tks for the work on sending this PR

just looked in some github issues in the best approach is to not use babel-polyfill and to not check for fetch as well

this is the solution 787f02e

if u wanna contribute to this package you can try to add some tests using jest #3 (http://facebook.github.io/jest/)

@sibelius sibelius closed this Dec 23, 2016
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.

None yet

2 participants