mirror of
https://github.com/amark/gun.git
synced 2026-03-08 01:51:43 +00:00
thanks to @sjones6 for .promise() & .then() & better React Native support!
This commit is contained in:
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 }
|
||||
|
||||
Reference in New Issue
Block a user