git ssb

2+

ev / mvd



Commit f5dc464093a9857f6d9410c8dac617b5c4e435cd

make sure "whitepage" bug is fixed in mvd too

Ev Bogue committed on 6/22/2018, 12:34:54 AM
Parent: e29b9cacf9b2690e0622dde43b93bdaa71290524

Files changed

config.jschanged
config.jsView
@@ -2,17 +2,19 @@
22
33 module.exports = function () {
44 var host = window.location.origin
55
6- http.get(host + '/get-config', function (res) {
7- res.on('data', function (data, remote) {
8- config = data
9- localStorage[host] = config
6 + if (localStorage[host])
7 + var config = JSON.parse(localStorage[host])
8 + else
9 + http.get(host + '/get-config', function (res) {
10 + res.on('data', function (data, remote) {
11 + var config = data
12 + localStorage[host] = config
13 + location.reload()
14 + })
1015 })
11- })
1216
13- var config = JSON.parse(localStorage[host])
14-
1517 config.blobsUrl = host + '/blobs/get/'
1618 config.emojiUrl = host + '/img/emoji/'
1719
1820 if (config.ws.remote)

Built with git-ssb-web