From dfda990ec22a489c233e2a6e6ab2915a6f6b2ab5 Mon Sep 17 00:00:00 2001 From: d3x0r Date: Wed, 22 Mar 2017 17:23:05 -0700 Subject: [PATCH] 'peer' should be 'this' --- gun.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gun.js b/gun.js index cf6d2aa2..9a810569 100644 --- a/gun.js +++ b/gun.js @@ -2375,7 +2375,7 @@ function open(peer, as){ if(!peer || !peer.url){ return } var url = peer.url.replace('http', 'ws'); - var wire = peer.wire = new WebSocket(url, peer.wsc.protocols, peer.wsc ); + var wire = peer.wire = new WebSocket(url, this.wsc.protocols, this.wsc ); wire.onclose = function(){ reconnect(peer, as); };