Skip to content

Commit

Permalink
Fixed issue loading on android chrome
Browse files Browse the repository at this point in the history
  • Loading branch information
sphred5 authored Dec 14, 2018
1 parent 681d560 commit d6e3e97
Showing 1 changed file with 9 additions and 12 deletions.
21 changes: 9 additions & 12 deletions client/src/store.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,15 @@
import { createStore, applyMiddleware, compose } from 'redux';
import thunk from 'redux-thunk';
import rootReducer from './reducers';
import { createStore, applyMiddleware, compose } from "redux";
import thunk from "redux-thunk";
import rootReducer from "./reducers";

const initialState = {};

const middleware = [thunk];
const middleWare = [thunk];

const store = createStore(
rootReducer,
initialState,
compose(
applyMiddleware(...middleware),
window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__()
)
);

const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose;
const store = createStore(rootReducer, initialState, composeEnhancers(
applyMiddleware(...middleWare)
));

export default store;

0 comments on commit d6e3e97

Please sign in to comment.