mirror of
https://github.com/amark/gun.git
synced 2025-06-04 13:16:44 +00:00
thanks to @sjones6 for .promise() & .then() & better React Native support!
This commit is contained in:
parent
29472bccbd
commit
b3ba1bde4d
2
gun.js
2
gun.js
@ -1720,7 +1720,7 @@
|
||||
this.to.next(ctx);
|
||||
var opt = ctx.opt;
|
||||
if(ctx.once){ return }
|
||||
if(false === opt.WebSocket || !websocket){ return }
|
||||
if(!websocket || false === opt.WebSocket){ return }
|
||||
var ws = opt.ws || (opt.ws = {}); ws.who = 0;
|
||||
Gun.obj.map(opt.peers, function(){ ++ws.who });
|
||||
if(ctx.once){ return }
|
||||
|
2
gun.min.js
vendored
2
gun.min.js
vendored
File diff suppressed because one or more lines are too long
@ -15,7 +15,7 @@ Gun.on('opt', function(ctx){
|
||||
this.to.next(ctx);
|
||||
var opt = ctx.opt;
|
||||
if(ctx.once){ return }
|
||||
if(false === opt.WebSocket || !websocket){ return }
|
||||
if(!websocket || false === opt.WebSocket){ return }
|
||||
var ws = opt.ws || (opt.ws = {}); ws.who = 0;
|
||||
Gun.obj.map(opt.peers, function(){ ++ws.who });
|
||||
if(ctx.once){ return }
|
||||
|
Loading…
x
Reference in New Issue
Block a user