Skip to content
Snippets Groups Projects
Commit a40d1a30 authored by adcpm's avatar adcpm
Browse files

Add config param on browser deployment

parent 6e4e6721
No related branches found
No related tags found
No related merge requests found
...@@ -2,6 +2,7 @@ const steem = { ...@@ -2,6 +2,7 @@ const steem = {
api: require('./api'), api: require('./api'),
auth: require('./auth'), auth: require('./auth'),
broadcast: require('./broadcast'), broadcast: require('./broadcast'),
config: require('./config'),
formatter: require('./formatter'), formatter: require('./formatter'),
}; };
......
const defaultConfig = require('../config.json'); const defaultConfig = require('../config.json');
module.exports = (function () { module.exports = (function () {
const config = defaultConfig; const config = defaultConfig;
const get = (key) => config[key]; const get = (key) => config[key];
const set = (key, value) => { const set = (key, value) => {
config[key] = value; config[key] = value;
} };
return { get, set }; return { get, set };
})() })();
\ No newline at end of file \ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment