20 lines
335 B
JavaScript
20 lines
335 B
JavaScript
import { store } from 'store';
|
|
|
|
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;
|