aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorkumavis <kumavis@users.noreply.github.com>2016-08-12 11:53:15 +0800
committerGitHub <noreply@github.com>2016-08-12 11:53:15 +0800
commit8943e86470f3a5cada9208615c1ea70cae2a0b85 (patch)
tree0a8511d74baa587af81eec3d3bb6c4f6b1e971f9 /ui
parenta5cfa937ef216ae3e0ec687e39bffb1c2bfaed82 (diff)
parent878a01a294c8dbc915ceb7a5f52f0006247fb4b4 (diff)
downloadtangerine-wallet-browser-8943e86470f3a5cada9208615c1ea70cae2a0b85.tar
tangerine-wallet-browser-8943e86470f3a5cada9208615c1ea70cae2a0b85.tar.gz
tangerine-wallet-browser-8943e86470f3a5cada9208615c1ea70cae2a0b85.tar.bz2
tangerine-wallet-browser-8943e86470f3a5cada9208615c1ea70cae2a0b85.tar.lz
tangerine-wallet-browser-8943e86470f3a5cada9208615c1ea70cae2a0b85.tar.xz
tangerine-wallet-browser-8943e86470f3a5cada9208615c1ea70cae2a0b85.tar.zst
tangerine-wallet-browser-8943e86470f3a5cada9208615c1ea70cae2a0b85.zip
Merge branch 'master' into CustomRpcLoadingBug
Diffstat (limited to 'ui')
-rw-r--r--ui/app/store.js15
1 files changed, 9 insertions, 6 deletions
diff --git a/ui/app/store.js b/ui/app/store.js
index ab6422e73..8d891bdc9 100644
--- a/ui/app/store.js
+++ b/ui/app/store.js
@@ -1,17 +1,20 @@
const createStore = require('redux').createStore
const applyMiddleware = require('redux').applyMiddleware
const thunkMiddleware = require('redux-thunk')
-const createLogger = require('redux-logger')
const rootReducer = require('./reducers')
+const createLogger = require('redux-logger')
+
+global.METAMASK_DEBUG = false
module.exports = configureStore
-const loggerMiddleware = createLogger()
+const loggerMiddleware = createLogger({
+ predicate: () => global.METAMASK_DEBUG,
+})
+
+const middlewares = [thunkMiddleware, loggerMiddleware]
-const createStoreWithMiddleware = applyMiddleware(
- thunkMiddleware,
- loggerMiddleware
-)(createStore)
+const createStoreWithMiddleware = applyMiddleware(...middlewares)(createStore)
function configureStore (initialState) {
return createStoreWithMiddleware(rootReducer, initialState)