'this' should be 'as'

but I think 'this' is also 'as'... in that case...
This commit is contained in:
d3x0r 2017-03-22 17:24:45 -07:00 committed by GitHub
parent dfda990ec2
commit 7b6dc5d11b

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, this.wsc.protocols, this.wsc );
var wire = peer.wire = new WebSocket(url, as.wsc.protocols, as.wsc );
wire.onclose = function(){
reconnect(peer, as);
};