thanks to @sjones6 for .promise() & .then() & better React Native support!

This commit is contained in:
Mark Nadal 2017-09-18 14:05:12 -07:00
parent 29472bccbd
commit b3ba1bde4d
3 changed files with 3 additions and 3 deletions

2
gun.js
View File

@ -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

File diff suppressed because one or more lines are too long

View File

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