git ssb

1+

dinoworm ๐Ÿ› / catstack



Commit 633cd4d6f79cffbdfd1447900ad74313781e01f9

collapsed two conditionals

Don Smith committed on 12/28/2015, 8:36:31 PM
Parent: b817a22329dc2038d6896282542635e15961b37b

Files changed

app/store.jschanged
app/store.jsView
@@ -8,26 +8,23 @@
88 let middleware = []
99
1010 middleware.push(thunk)
1111
12-if (process.env.NODE_ENV === 'development') {
13- var logger = require('redux-logger')
14- var { persistState } = require('redux-devtools')
15-
16- var DevTools = require('app/dev/tools')
17-}
18-
1912 storeEnhancers.push(
2013 applyMiddleware(...middleware)
2114 )
2215
2316 if (process.env.NODE_ENV === 'development') {
17+ let logger = require('redux-logger')
2418 storeEnhancers.push(
2519 applyMiddleware(logger())
2620 )
21+
22+ let DevTools = require('app/dev/tools')
2723 storeEnhancers.push(DevTools.instrument())
2824
2925 if (module.browser) {
26+ let { persistState } = require('redux-devtools')
3027 storeEnhancers.push(persistState(
3128 window.location.href.match(
3229 /[?&]debug_session=([^&]+)\b/
3330 )

Built with git-ssb-web