Commit 548b14e3f872fb9e762a178f3637105899c69150
patch caps config setup
mix irving committed on 8/21/2017, 4:34:28 AMParent: ad95e487f953cd08e14312fb317688f4a95ec54b
Files changed
invite.js | changed |
invite.js | ||
---|---|---|
@@ -21,9 +21,8 @@ | ||
21 | 21 … | function accept (invite, cb) { |
22 | 22 … | var progress = Value('Connecting...') |
23 | 23 … | var data = ref.parseInvite(invite) |
24 | 24 … | var id = api.keys.sync.id() |
25 | - | |
26 | 25 … | var config = api.config.sync.load() |
27 | 26 … | |
28 | 27 … | if (!data) return cb(new Error('Not a valid invite code. Please make sure you copied the entire code and try again.')) |
29 | 28 … | |
@@ -34,9 +33,9 @@ | ||
34 | 33 … | // connect to the remote pub using the invite code |
35 | 34 … | ssbClient(null, { |
36 | 35 … | remote: data.invite, |
37 | 36 … | manifest: { invite: {use: 'async'}, getAddress: 'async' }, |
38 | - appKey: config.caps.shs | |
37 … | + appKey: config.caps && config.caps.shs | |
39 | 38 … | }, function (err, sbot) { |
40 | 39 … | if (err) return cb(err) |
41 | 40 … | progress.set('Requesting follow...') |
42 | 41 … |
Built with git-ssb-web