Commit 633cd4d6f79cffbdfd1447900ad74313781e01f9
collapsed two conditionals
Don Smith committed on 12/28/2015, 8:36:31 PMParent: b817a22329dc2038d6896282542635e15961b37b
Files changed
app/store.js | changed |
app/store.js | ||
---|---|---|
@@ -8,26 +8,23 @@ | ||
8 | 8 | let middleware = [] |
9 | 9 | |
10 | 10 | middleware.push(thunk) |
11 | 11 | |
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 | - | |
19 | 12 | storeEnhancers.push( |
20 | 13 | applyMiddleware(...middleware) |
21 | 14 | ) |
22 | 15 | |
23 | 16 | if (process.env.NODE_ENV === 'development') { |
17 | + let logger = require('redux-logger') | |
24 | 18 | storeEnhancers.push( |
25 | 19 | applyMiddleware(logger()) |
26 | 20 | ) |
21 | + | |
22 | + let DevTools = require('app/dev/tools') | |
27 | 23 | storeEnhancers.push(DevTools.instrument()) |
28 | 24 | |
29 | 25 | if (module.browser) { |
26 | + let { persistState } = require('redux-devtools') | |
30 | 27 | storeEnhancers.push(persistState( |
31 | 28 | window.location.href.match( |
32 | 29 | /[?&]debug_session=([^&]+)\b/ |
33 | 30 | ) |
Built with git-ssb-web