aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--docs/cookbook/browser.md2
1 files changed, 1 insertions, 1 deletions
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