git ssb

3+

ev / decent



Commit 060a2be4d73562a15bbf948d5fe42c83c9f4f02d

make it work with minsbot

Ev Bogue committed on 2/18/2019, 8:36:57 PM
Parent: f6f02149a4304abe8de319ba4e68f1a4f03c9f80

Files changed

config.jschanged
config.jsView
@@ -1,8 +1,10 @@
11 var http = require('http')
22
33 module.exports = function () {
4- var host = window.location.origin
4 + //var host = window.location.origin
5 + //var host = 'http://localhost:8989'
6 + var host = 'http://evbogue.com:8989'
57
68 function getConfig () {
79 http.get(host + '/get-config', function (res) {
810 res.on('data', function (data, remote) {
@@ -23,11 +25,13 @@
2325 }
2426
2527 config.blobsUrl = host + '/blobs/get/'
2628 config.emojiUrl = host + '/img/emoji/'
27- if (config.address) {
28- addies = config.address.split(';')
29- config.remote = addies[1]
30- }
3129
30 + if (config.ws.remote)
31 + config.remote = config.ws.remote
32 + else
33 + config.remote = config.address
34 +
3235 return config
3336 }
37 +

Built with git-ssb-web