about summary refs log tree commit diff
path: root/app/assets/javascripts/components/store/configureStore.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'app/assets/javascripts/components/store/configureStore.jsx')
-rw-r--r--app/assets/javascripts/components/store/configureStore.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/assets/javascripts/components/store/configureStore.jsx b/app/assets/javascripts/components/store/configureStore.jsx
index 9ff28bb42..1f2fcf2cf 100644
--- a/app/assets/javascripts/components/store/configureStore.jsx
+++ b/app/assets/javascripts/components/store/configureStore.jsx
@@ -1,7 +1,7 @@
-import { createStore, applyMiddleware } from 'redux';
+import { createStore, applyMiddleware, compose } from 'redux';
 import thunk from 'redux-thunk';
 import appReducer from '../reducers';
 
-export default function configureStore() {
-  return createStore(appReducer, applyMiddleware(thunk));
+export default function configureStore(initialState) {
+  return createStore(appReducer, initialState, compose(applyMiddleware(thunk), window.devToolsExtension ? window.devToolsExtension() : f => f));
 }