Merge pull request #374 from sjones6/protocols

Protocols
This commit is contained in:
Mark Nadal 2017-05-30 18:39:17 -07:00 committed by GitHub
commit 0a4c1fcbe9
3 changed files with 3 additions and 3 deletions

2
gun.js
View File

@ -1003,7 +1003,7 @@
if(!obj_is(at.opt.peers)){ at.opt.peers = {}}
at.opt.peers = obj_to(tmp, at.opt.peers);
}
at.opt.wsc = at.opt.wsc || {protocols:''}
at.opt.wsc = at.opt.wsc || {protocols:[]}
at.opt.peers = at.opt.peers || {};
obj_to(opt, at.opt); // copies options on to `at.opt` only if not already taken.
Gun.on('opt', at);

2
gun.min.js vendored

File diff suppressed because one or more lines are too long

View File

@ -189,7 +189,7 @@ Gun._ = { // some reserved key words, these are not the only ones.
if(!obj_is(at.opt.peers)){ at.opt.peers = {}}
at.opt.peers = obj_to(tmp, at.opt.peers);
}
at.opt.wsc = at.opt.wsc || {protocols:''}
at.opt.wsc = at.opt.wsc || {protocols:[]}
at.opt.peers = at.opt.peers || {};
obj_to(opt, at.opt); // copies options on to `at.opt` only if not already taken.
Gun.on('opt', at);