Skip to content
This repository has been archived by the owner on Mar 10, 2020. It is now read-only.

Fix Request logging broken in Electron #808

Merged
merged 1 commit into from
Jul 10, 2018

Conversation

requilence
Copy link
Contributor

@requilence requilence commented Jul 9, 2018

When ipfs-api runs inside Electron, isNode is true, but res.req is undefined. And the request logging is breaks the lib.

It will be better to check whether res.req is set instead of relying on detect-node.

fixes #807

check whether res.req is set instead of relying on detect-node
Copy link
Contributor

@alanshaw alanshaw left a comment

Choose a reason for hiding this comment

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

Thanks @requilence

@alanshaw alanshaw merged commit 52298ae into ipfs-inactive:master Jul 10, 2018
danieldaf pushed a commit to danieldaf/js-ipfs-api that referenced this pull request Jul 21, 2018
check whether res.req is set instead of relying on detect-node
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Request logging broken in Electron
2 participants