git ssb

3+

ev / decent



Commit 9760f8a6b7e9529e590e975950c9a305d896419f

use latest decent-ws and detect hostname

Ev Bogue committed on 1/3/2019, 5:32:20 PM
Parent: a69c974e03a0cd614f905b2f0238365ef5694577

Files changed

bin.jschanged
config.jschanged
package-lock.jsonchanged
package.jsonchanged
bin.jsView
@@ -57,9 +57,9 @@
5757 .use(require('ssb-backlinks'))
5858 .use(require('ssb-search'))
5959 .use(require('./mvd-indexes'))
6060 .use(require('ssb-links'))
61- .use(require('./ssb-ws'))
61 + .use(require('decent-ws'))
6262 //.use(require('ssb-ebt'))
6363 .use({
6464 name: 'serve',
6565 version: '1.0.0',
config.jsView
@@ -2,9 +2,8 @@
22
33 module.exports = function () {
44 var host = window.location.origin
55
6- //var config = require('./config/inject')()
76 function getConfig () {
87 http.get(host + '/get-config', function (res) {
98 res.on('data', function (data, remote) {
109 var config = data
@@ -22,14 +21,13 @@
2221 location.reload()
2322 }, 1000)
2423 }
2524
26- config.blobsUrl = 'http://localhost:8989/blobs/get/'
27- config.emojiUrl = 'http://localhost:8989/img/emoji/'
25 + config.blobsUrl = host + '/blobs/get/'
26 + config.emojiUrl = host + '/img/emoji/'
2827 if (config.address) {
2928 addies = config.address.split(';')
3029 config.remote = addies[1]
31- console.log(addies[1])
3230 }
3331
3432 return config
3533 }
package-lock.jsonView
The diff is too large to show. Use a local git client to view these changes.
Old file size: 236923 bytes
New file size: 236923 bytes
package.jsonView
@@ -17,9 +17,9 @@
1717 "author": "Ev Bogue <ev@evbogue.com>",
1818 "license": "MIT",
1919 "dependencies": {
2020 "dataurl-": "^0.1.0",
21- "decent-ws": "1.0.4",
21 + "decent-ws": "1.1.0",
2222 "deep-extend": "^0.6.0",
2323 "diff": "^3.5.0",
2424 "ecstatic": "^3.3.0",
2525 "flumeview-query": "^7.1.0",

Built with git-ssb-web