1 | 'use strict';
|
2 |
|
3 | var compose = require('redux').compose;
|
4 | var logOnly = require('./logOnly');
|
5 |
|
6 | exports.__esModule = true;
|
7 | exports.composeWithDevTools =
|
8 | process.env.NODE_ENV === 'production'
|
9 | ? logOnly.composeWithDevTools
|
10 | : typeof window !== 'undefined' &&
|
11 | window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
|
12 | ? window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__
|
13 | : function () {
|
14 | if (arguments.length === 0) return undefined;
|
15 | if (typeof arguments[0] === 'object') return compose;
|
16 | return compose.apply(null, arguments);
|
17 | };
|
18 |
|
19 | exports.devToolsEnhancer =
|
20 | process.env.NODE_ENV === 'production'
|
21 | ? logOnly.devToolsEnhancer
|
22 | : typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__
|
23 | ? window.__REDUX_DEVTOOLS_EXTENSION__
|
24 | : function () {
|
25 | return function (noop) {
|
26 | return noop;
|
27 | };
|
28 | };
|