Skip to content

Commit

Permalink
revert devtool alert (#1238)
Browse files Browse the repository at this point in the history
  • Loading branch information
vera-liu committed Oct 3, 2016
1 parent 9795e4a commit d8638db
Showing 1 changed file with 3 additions and 9 deletions.
12 changes: 3 additions & 9 deletions caravel/assets/javascripts/reduxUtils.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,15 +67,9 @@ export function addToArr(state, arrKey, obj) {
export function enhancer() {
let enhancerWithPersistState = compose(persistState());
if (process.env.NODE_ENV === 'dev') {
if (window.devToolsExtension) {
enhancerWithPersistState = compose(
persistState(), window.devToolsExtension && window.devToolsExtension()
);
} else {
console.warn('You may encounter errors unless' +
'you have Redux Devtool Extension installed: ' +
'http://github.com/zalmoxisus/redux-devtools-extension');
}
enhancerWithPersistState = compose(
persistState(), window.devToolsExtension && window.devToolsExtension()
);
}
return enhancerWithPersistState;
}

0 comments on commit d8638db

Please sign in to comment.