Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit

Permalink
docs: fix typos in webRTC code snippet (#943)
Browse files Browse the repository at this point in the history
  • Loading branch information
hisenb3rg authored and daviddias committed Aug 16, 2017
1 parent 07228a0 commit b16115c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -352,7 +352,7 @@ To add WebRTC support in a IPFS node instance, do:
```JavaScript
const wrtc = require('wrtc') // or require('electron-webrtc')()
const WStar = require('libp2p-webrtc-star')
const wstar = WStar({ wrtc: wrtc })
const wstar = new WStar({ wrtc: wrtc })

const node = new IPFS({
repo: 'your-repo-path',
Expand All @@ -368,7 +368,7 @@ const node = new IPFS({
},
libp2p: {
modules: {
transport: [wstar]
transport: [wstar],
discovery: [wstar.discovery]
}
}
Expand Down

0 comments on commit b16115c

Please sign in to comment.