git ssb

16+

Dominic / patchbay



Commit 903fcd29d3f44795fe947a4f12ab38ea616adb6c

connect to remote ws api, if possible

Dominic Tarr committed on 7/10/2016, 3:51:57 AM
Parent: a63b8f8aceec2f9582efb7ddd51e11e58515dd66

Files changed

sbot-api.jschanged
sbot-api.jsView
@@ -30,9 +30,16 @@
3030 var opts = createConfig()
3131 var sbot = null
3232
3333 var rec = Reconnect(function (isConn) {
34- createClient(function (err, _sbot) {
34+ var remote
35+ if('undefined' !== typeof localStorage)
36+ remote = localStorage.remote
37+
38+ createClient(keys, {
39+ manifest: require('./manifest.json'),
40+ remote: remote
41+ }, function (err, _sbot) {
3542 if(err) {
3643 console.error(err.stack)
3744 isConn(err)
3845 return
@@ -92,4 +99,5 @@
9299 })
93100 }
94101 }
95102
103+

Built with git-ssb-web