import { remote } from 'electron';
import isPlaying from './../reducers/player';
import { createStore } from 'redux';

// TODO: Make root reducer later
// import { combineReducers } from 'react-redux';

export default () => {
  if (remote.getGlobal('process').env.NODE_ENV === 'development') {
    return createStore(isPlaying,
      window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__());
  } else {
    return createStore(isPlaying);
  }
};

import { remote } from 'electron';
import isPlaying from './../reducers/player';
import { createStore } from 'redux';

// TODO: Make root reducer later
// import { combineReducers } from 'react-redux';

export default () => {
  if (remote.process.env.NODE_ENV === 'development') {
    return createStore(isPlaying,
      window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__());
  } else {
    return createStore(isPlaying);
  }
};

Use cached version of process object
Use cached version of process object
