From fb6f79fbb85444933d2771ea4311f1e08613f1e4 Mon Sep 17 00:00:00 2001 From: Benjamin Forster Date: Wed, 5 Jul 2017 06:48:51 +1000 Subject: fix typo in example code. (#68) --- docs/cookbook/browser.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/cookbook/browser.md b/docs/cookbook/browser.md index ee20f9b..0a7d0bd 100644 --- a/docs/cookbook/browser.md +++ b/docs/cookbook/browser.md @@ -101,7 +101,7 @@ var archive = hyperdrive() var link = archive.discoveryKey.toString('hex') var swarm = webrtc(signalhub(link, DEFAULT_SIGNALHUBS)) -swarm.on('peer', function (peer) { +swarm.on('peer', function (conn) { var peer = archive.replicate({ upload: true, download: true -- cgit v1.2.3