Commit 060a2be4d73562a15bbf948d5fe42c83c9f4f02d
make it work with minsbot
Ev Bogue committed on 2/18/2019, 8:36:57 PMParent: f6f02149a4304abe8de319ba4e68f1a4f03c9f80
Files changed
config.js | changed |
config.js | |||
---|---|---|---|
@@ -1,8 +1,10 @@ | |||
1 | 1 … | var http = require('http') | |
2 | 2 … | ||
3 | 3 … | 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' | ||
5 | 7 … | ||
6 | 8 … | function getConfig () { | |
7 | 9 … | http.get(host + '/get-config', function (res) { | |
8 | 10 … | res.on('data', function (data, remote) { | |
@@ -23,11 +25,13 @@ | |||
23 | 25 … | } | |
24 | 26 … | ||
25 | 27 … | config.blobsUrl = host + '/blobs/get/' | |
26 | 28 … | config.emojiUrl = host + '/img/emoji/' | |
27 | - if (config.address) { | ||
28 | - addies = config.address.split(';') | ||
29 | - config.remote = addies[1] | ||
30 | - } | ||
31 | 29 … | ||
30 … | + if (config.ws.remote) | ||
31 … | + config.remote = config.ws.remote | ||
32 … | + else | ||
33 … | + config.remote = config.address | ||
34 … | + | ||
32 | 35 … | return config | |
33 | 36 … | } | |
37 … | + |
Built with git-ssb-web