'peer' should be 'this'

This commit is contained in:
d3x0r 2017-03-22 17:23:05 -07:00 committed by GitHub
parent 823950d87d
commit dfda990ec2

2
gun.js
View File

@ -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);
};