Commit 8f1eb0f94826f7760a52520188ee85ad5527482b
Allow ssb_appname to be specified in opts (as "appName")
Jan Bölsche committed on 9/18/2017, 8:04:09 AMParent: fe609d942dae50f8d162b8a47a474a11d25a08f7
Files changed
index.js | changed |
index.js | ||
---|---|---|
@@ -40,9 +40,9 @@ | ||
40 | 40 … | |
41 | 41 … | module.exports = function (opts, cb) { |
42 | 42 … | if (typeof opts === 'function') cb = opts, opts = null |
43 | 43 … | opts = opts || {} |
44 | - var config = createConfig(process.env.ssb_appname, opts) | |
44 … | + var config = createConfig(process.env.ssb_appname || opts.appName, opts) | |
45 | 45 … | var appKey = config.appKey || |
46 | 46 … | (config.caps && config.caps.shs && new Buffer(config.caps.shs, 'base64')) |
47 | 47 … | if (!appKey) return cb(new Error('missing secret-handshake capability key')) |
48 | 48 … | var keys = config.keys || (config.keys = |
Built with git-ssb-web