Skip to content

Commit

Permalink
enable redux-dev-tools if present in dev mode
Browse files Browse the repository at this point in the history
  • Loading branch information
kraynel committed Oct 1, 2018
1 parent 811bc01 commit 2d58b50
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions console/src/client.js
Expand Up @@ -26,6 +26,8 @@ let _finalCreateStore;
if (__DEVELOPMENT__) {
_finalCreateStore = compose(
applyMiddleware(thunk, routerMiddleware(browserHistory), createLogger()),
window.__REDUX_DEVTOOLS_EXTENSION__ &&
window.__REDUX_DEVTOOLS_EXTENSION__(),
require('redux-devtools').persistState(
window.location.href.match(/[?&]debug_session=([^&]+)\b/)
)
Expand Down

0 comments on commit 2d58b50

Please sign in to comment.