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

feat: detect support for WebRTC data channels #56

Merged
merged 2 commits into from
Aug 12, 2020

Conversation

achingbrain
Copy link
Member

The use of WebRTC in IPFS is only as a data channel, we don't use getUserMedia and sometimes the user has restricted access to this API so add a 'supports' test that is just for data channels.

Fixes #50

IPFS' use of WebRTC is only as a data channel, we don't use getUserMedia
and sometimes the user has restricted access to this API so add a
'supports' test that is just for data channels.

Fixes #50
Copy link

@jacobheun jacobheun left a comment

Choose a reason for hiding this comment

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

LGTM, one small correction on the test description.

}
})

it('supportsWebRTCDataChannels should return true in Web Worker', function () {

Choose a reason for hiding this comment

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

Suggested change
it('supportsWebRTCDataChannels should return true in Web Worker', function () {
it('supportsWebRTCDataChannels should return false in Web Worker', function () {

Copy link
Member Author

Choose a reason for hiding this comment

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

I've changed the name of the supportsWebRTC webworker test as that was wrong too.

@achingbrain achingbrain merged commit 78ad2d2 into master Aug 12, 2020
@achingbrain achingbrain deleted the fix/relax-webrtc-support-check branch August 12, 2020 10:53
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.

reduce strictness of WebRTC support check
2 participants