Skip to content
This repository has been archived by the owner on Aug 23, 2019. It is now read-only.

Commit

Permalink
fix: shim setImmediate in browser (#51)
Browse files Browse the repository at this point in the history
Adding condig to use webrtc in a js-ipfs browser node as per
https://github.com/ipfs/js-ipfs#how-to-enable-webrtc-support-for-js-ipfs-in-the-browser

triggered errors about unqualifed setImmediate use in dialler.

License: MIT
Signed-off-by: Oli Evans <[email protected]>
  • Loading branch information
olizilla authored and jacobheun committed May 29, 2019
1 parent ed35c76 commit 9ea72f3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/circuit/dialer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
const once = require('once')
const PeerId = require('peer-id')
const waterfall = require('async/waterfall')
const setImmediate = require('async/setImmediate')
const multiaddr = require('multiaddr')

const Connection = require('interface-connection').Connection
Expand Down
1 change: 1 addition & 0 deletions src/circuit/hop.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ const proto = require('../protocol').CircuitRelay
const multiaddr = require('multiaddr')
const series = require('async/series')
const waterfall = require('async/waterfall')
const setImmediate = require('async/setImmediate')

const multicodec = require('./../multicodec')

Expand Down

0 comments on commit 9ea72f3

Please sign in to comment.