lbry-desktop/ui/js/app.js

18 lines
No EOL
339 B
JavaScript

import store from 'store.js';
const env = process.env.NODE_ENV || 'development';
const config = require(`./config/${env}`);
const logs = [];
const app = {
env: env,
config: config,
store: store,
logs: logs,
log: function(message) {
console.log(message);
logs.push(message);
}
}
global.app = app;
module.exports = app;