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

replaced request with axios #3

Merged
merged 2 commits into from
Jan 5, 2018
Merged

replaced request with axios #3

merged 2 commits into from
Jan 5, 2018

Conversation

faboweb
Copy link
Contributor

@faboweb faboweb commented Jan 3, 2018

Request interferes somehow with electron node_module resolution. This fixes it. Is this viable?

src/client.js Outdated
axios({
url: this.uri + method,
params: args
}).then(({data}) => {
Copy link
Owner

Choose a reason for hiding this comment

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

Make sure you keep the if (data.error) return cb(Error(data.error)) line here, since we might get a 200 response that tells us about an error.

@mappum
Copy link
Owner

mappum commented Jan 3, 2018

Sure, using axios makes sense since we also use it in the LCD client.

@mappum mappum merged commit f965b56 into mappum:master Jan 5, 2018
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