From 197949820f6b58c0df33edf56af0f3bdd0455ac4 Mon Sep 17 00:00:00 2001 From: nicholas llerandi Date: Tue, 30 Apr 2019 20:24:35 -0400 Subject: [PATCH] App-not-displaying-on-all-browsers_devices#62 --- client/src/store.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/client/src/store.js b/client/src/store.js index 6c6fe3c..d25f159 100644 --- a/client/src/store.js +++ b/client/src/store.js @@ -4,12 +4,14 @@ import rootReducer from "./reducers"; const initialState = {}; +const composeEnhancers = window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ || compose; + const store = createStore( rootReducer, initialState, - compose( - applyMiddleware(thunk), - window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__() + composeEnhancers( + applyMiddleware(thunk) + // ,window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__() ) );