git ssb

7+

dinoworm 🐛 / patchcore



Commit 548b14e3f872fb9e762a178f3637105899c69150

patch caps config setup

mix irving committed on 8/21/2017, 4:34:28 AM
Parent: ad95e487f953cd08e14312fb317688f4a95ec54b

Files changed

invite.jschanged
invite.jsView
@@ -21,9 +21,8 @@
2121 function accept (invite, cb) {
2222 var progress = Value('Connecting...')
2323 var data = ref.parseInvite(invite)
2424 var id = api.keys.sync.id()
25-
2625 var config = api.config.sync.load()
2726
2827 if (!data) return cb(new Error('Not a valid invite code. Please make sure you copied the entire code and try again.'))
2928
@@ -34,9 +33,9 @@
3433 // connect to the remote pub using the invite code
3534 ssbClient(null, {
3635 remote: data.invite,
3736 manifest: { invite: {use: 'async'}, getAddress: 'async' },
38- appKey: config.caps.shs
37 + appKey: config.caps && config.caps.shs
3938 }, function (err, sbot) {
4039 if (err) return cb(err)
4140 progress.set('Requesting follow...')
4241

Built with git-ssb-web