Commit 151a4f083fcf9352422148bd94eebc170209c940
can't use redux-logger unless in the browser
Michael Williams committed on 1/8/2016, 5:31:47 AMParent: 4e75897c4222c98315e01b7c54934b93a605ebce
Files changed
app/store.js | changed |
app/store.js | ||
---|---|---|
@@ -18,11 +18,13 @@ | ||
18 | 18 | applyMiddleware(...middleware) |
19 | 19 | ) |
20 | 20 | |
21 | 21 | if (process.env.NODE_ENV === 'development') { |
22 | - storeEnhancers.push( | |
23 | - applyMiddleware(logger()) | |
24 | - ) | |
22 | + if (module.browser) { | |
23 | + storeEnhancers.push( | |
24 | + applyMiddleware(logger()) | |
25 | + ) | |
26 | + } | |
25 | 27 | |
26 | 28 | storeEnhancers.push(DevTools.instrument()) |
27 | 29 | |
28 | 30 | if (module.browser) { |
Built with git-ssb-web