1
0
mirror of https://github.com/trezor/trezor-wallet synced 2024-11-27 18:58:08 +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,
});
if (window && typeof window.devToolsExtension === 'function') {
enhancers.push(window.devToolsExtension());
/* eslint-disable no-underscore-dangle */
if (window && typeof window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ === 'function') {
enhancers.push(window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__());
}
/* eslint-enable */
composedEnhancers = compose(
applyMiddleware(logger, ...middlewares, ...services),