Commit 744fcc9d5bd44f15c720974e956f5edb8cfc6a46
request main identity, and save the id
Dominic Tarr committed on 5/2/2019, 8:07:49 AMParent: c8415b17c069c16925de05cee8b846141a3c4cfc
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -24,9 +24,12 @@ | ||
24 | 24 … | //actions may make writes to sbot, or can set things |
25 | 25 … | |
26 | 26 … | require('ssb-client')(function (err, sbot) { |
27 | 27 … | if(err) throw err |
28 … | + sbot.identities.main(function (err, id) { | |
29 … | + sbot.id = id | |
28 | 30 … | |
31 … | + if(!sbot.id) throw new Error('sbot id missing') | |
29 | 32 … | var coherence = Coherence(require('./layout')) |
30 | 33 … | |
31 | 34 … | //core: render an avatar, select |
32 | 35 … | .use('avatar', require('./apis/avatar')(sbot)) |
@@ -193,9 +196,9 @@ | ||
193 | 196 … | } |
194 | 197 … | }) |
195 | 198 … | }) |
196 | 199 … | ) |
197 | -}) | |
200 … | +})}) | |
198 | 201 … | |
199 | 202 … | |
200 | 203 … | |
201 | 204 … |
Built with git-ssb-web