lbry-desktop/ui/app.js

21 lines
335 B
JavaScript
Raw Normal View History

2019-04-04 23:05:23 +02:00
import { store } from 'store';
2019-03-05 05:46:57 +01:00
const env = process.env.NODE_ENV || 'production';
const logs = [];
const app = {
env,
store,
logs,
log(message) {
logs.push(message);
},
};
global.app = app;
// Lbryinc needs access to the redux store for dispatching auth-releated actions
global.store = app.store;
export default app;