You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

26 lines
840 B

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