git ssb

1+

dinoworm ๐Ÿ› / catstack



Commit 151a4f083fcf9352422148bd94eebc170209c940

can't use redux-logger unless in the browser

Michael Williams committed on 1/8/2016, 5:31:47 AM
Parent: 4e75897c4222c98315e01b7c54934b93a605ebce

Files changed

app/store.jschanged
app/store.jsView
@@ -18,11 +18,13 @@
1818 applyMiddleware(...middleware)
1919 )
2020
2121 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+ }
2527
2628 storeEnhancers.push(DevTools.instrument())
2729
2830 if (module.browser) {

Built with git-ssb-web