1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-28 03:08:30 +00:00

fix warnings from react devtools ext

This commit is contained in:
slowbackspace 2018-12-18 10:53:11 +01:00 committed by Szymon Lesisz
parent 6171d5ea0f
commit 3da10ecf5a

View File

@ -47,9 +47,11 @@ if (buildUtils.isDev()) {
collapsed: true, collapsed: true,
}); });
if (window && typeof window.devToolsExtension === 'function') { /* eslint-disable no-underscore-dangle */
enhancers.push(window.devToolsExtension()); if (window && typeof window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ === 'function') {
enhancers.push(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__());
} }
/* eslint-enable */
composedEnhancers = compose( composedEnhancers = compose(
applyMiddleware(logger, ...middlewares, ...services), applyMiddleware(logger, ...middlewares, ...services),