Skip to content

Commit

Permalink
Protocol to empty array
Browse files Browse the repository at this point in the history
  • Loading branch information
sjones6 committed May 31, 2017
1 parent e939a18 commit d15eedc
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion gun.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Loading

0 comments on commit d15eedc

Please sign in to comment.