lbry-desktop/ui/js/app.js

18 lines
305 B
JavaScript
Raw Normal View History

2017-04-07 07:15:22 +02:00
import store from 'store.js';
const env = ENV;
2017-04-07 07:15:22 +02:00
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);
2016-04-10 02:00:56 +02:00
}
2017-04-07 07:15:22 +02:00
}
2016-11-22 21:19:08 +01:00
2017-04-07 07:15:22 +02:00
global.app = app;
2017-05-04 05:44:08 +02:00
module.exports = app;