Commit 21b4a8c3bae6a534cb6aeb6a8bb1bdfa750d2601
wip
mix irving committed on 8/26/2017, 7:12:18 AMParent: 47c8e73a3d93e51d2d4b4db1736270f2e2f76842
Files changed
config.js | changed |
main.js | changed |
config.js | ||
---|---|---|
@@ -2,11 +2,11 @@ | ||
2 | 2 | const nest = require('depnest') |
3 | 3 | const ssbKeys = require('ssb-keys') |
4 | 4 | const Path = require('path') |
5 | 5 | |
6 | -const appName = process.env.ssb_appname || 'ssb' //'ticktack' TEMP: this is for the windowsSSB installer only | |
6 | +const appName = process.env.ssb_appname || 'ticktack' //'ticktack' TEMP: this is for the windowsSSB installer only | |
7 | 7 | const opts = appName == 'ssb' |
8 | - ? { "port": 43750, "blobsPort": 43751, "ws": { "port": 43751 } } | |
8 | + ? null //{ "port": 43750, "blobsPort": 43751, "ws": { "port": 43751 } } | |
9 | 9 | : require('./default-config.json') |
10 | 10 | |
11 | 11 | exports.gives = nest('config.sync.load') |
12 | 12 | exports.create = (api) => { |
main.js | ||
---|---|---|
@@ -38,13 +38,13 @@ | ||
38 | 38 | })) |
39 | 39 | |
40 | 40 | document.body.appendChild(api.app.html.app()) |
41 | 41 | |
42 | -// var invite = api.config.sync.load().autoinvite | |
43 | -// if(invite) | |
44 | -// api.invite.async.autofollow( | |
45 | -// invite, | |
46 | -// function (err, follows) { | |
47 | -// console.log('autofollowed', err, follows); | |
48 | -// }) | |
49 | -// else | |
50 | -// console.log('no invite') | |
42 | +var invite = api.config.sync.load().autoinvite | |
43 | +if(invite) | |
44 | + api.invite.async.autofollow( | |
45 | + invite, | |
46 | + function (err, follows) { | |
47 | + console.log('autofollowed', err, follows); | |
48 | + }) | |
49 | +else | |
50 | + console.log('no invite') |
Built with git-ssb-web