Files: c18b233c6d62741496978cd8dc1f34a093946f8b / config.js
333 bytesRaw
1 | const Config = require('ssb-config/inject') |
2 | const nest = require('depnest') |
3 | |
4 | exports.gives = nest('config.sync.load') |
5 | exports.create = (api) => { |
6 | return nest('config.sync.load', () => { |
7 | var config |
8 | return () => { |
9 | if (!config) { |
10 | config = Config(process.env.ssb_appname) |
11 | } |
12 | return config |
13 | } |
14 | }) |
15 | } |
16 |
Built with git-ssb-web