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: remove console.error on init in regular browser #17

Merged
merged 1 commit into from
Oct 6, 2019

Conversation

lidel
Copy link
Contributor

@lidel lidel commented Oct 4, 2019

This PR removes unnecessary console.error during the init.

Motivation

We introduced support for feature detection of Google Chrome in #16.
Unfortunately, if sockets API is missing (eg. browser extension loads in regular browser – ipfs/ipfs-companion#716), console starts with irrelevant error:

err-2019-10-04--21-58-48

Removing the error aligns chrome-dgram with existing behavior of chrome-net, which does not print error to the console:

Removes unnecessary console.error
to match behavior of chrome-net
Copy link
Owner

@feross feross left a comment

Choose a reason for hiding this comment

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

LGTM

@feross feross merged commit 6e624cc into feross:master Oct 6, 2019
@feross
Copy link
Owner

feross commented Oct 6, 2019

3.0.4

lidel added a commit to ipfs/ipfs-companion that referenced this pull request Oct 9, 2019
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