1
0
Fork 0
mirror of https://github.com/muerwre/vault-frontend.git synced 2025-04-24 20:36:40 +07:00

disabled devtools at prod

This commit is contained in:
Fedor Katurov 2021-03-10 12:46:40 +07:00
parent f014e0b51e
commit 596eb03f98

View file

@ -75,7 +75,9 @@ export const sagaMiddleware = createSagaMiddleware();
export const history = createBrowserHistory(); export const history = createBrowserHistory();
const composeEnhancers = const composeEnhancers =
typeof window === 'object' && (<any>window).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ typeof window === 'object' &&
(<any>window).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__ &&
process.env.NODE_ENV === 'development'
? (<any>window).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({}) ? (<any>window).__REDUX_DEVTOOLS_EXTENSION_COMPOSE__({})
: compose; : compose;