Commit fb577ce1 authored by Andrew Hrdy's avatar Andrew Hrdy
Browse files

Fixed error where webpage crashes if the Redux dev extension is not installed.

parent f3d9d484
......@@ -19,13 +19,18 @@ import green from 'material-ui/colors/green';
// Create a history of your choosing (we're using a browser history in this case)
const history = createHistory();
const extension = window.__REDUX_DEVTOOLS_EXTENSION__ && window.__REDUX_DEVTOOLS_EXTENSION__();
const enhance = compose(
let enhance;
if(extension) {
enhance = compose(
const enhance = compose(
} else {
enhance = compose(
const store = createStore(reducers,enhance);
const theme = createMuiTheme({
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment