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

Merge pull request #45 from muerwre/task/#41

disabled devtools at prod
This commit is contained in:
muerwre 2021-03-10 12:47:07 +07:00 committed by GitHub
commit 9c59e28fc4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -75,7 +75,9 @@ export const sagaMiddleware = createSagaMiddleware();
export const history = createBrowserHistory();
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__({})
: compose;