UNPKG

635 BJavaScriptView Raw
1"use strict";
2
3var compose = require('redux').compose;
4
5exports.__esModule = true;
6exports.composeWithDevTools = (
7 typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ ?
8 window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ :
9 function() {
10 if (arguments.length === 0) return undefined;
11 if (typeof arguments[0] === 'object') return compose;
12 return compose.apply(null, arguments);
13 }
14);
15
16exports.devToolsEnhancer = (
17 typeof window !== 'undefined' && window.__REDUX_DEVTOOLS_EXTENSION__ ?
18 window.__REDUX_DEVTOOLS_EXTENSION__ :
19 function() { return function(noop) { return noop; } }
20);