aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/reducers.js
diff options
context:
space:
mode:
Diffstat (limited to 'ui/app/reducers.js')
-rw-r--r--ui/app/reducers.js8
1 files changed, 8 insertions, 0 deletions
diff --git a/ui/app/reducers.js b/ui/app/reducers.js
index 9243ddba4..a691cf614 100644
--- a/ui/app/reducers.js
+++ b/ui/app/reducers.js
@@ -7,6 +7,8 @@ const reduceIdentities = require('./reducers/identities')
const reduceMetamask = require('./reducers/metamask')
const reduceApp = require('./reducers/app')
+window.METAMASK_CACHED_LOG_STATE = null
+
module.exports = rootReducer
function rootReducer (state, action) {
@@ -35,5 +37,11 @@ function rootReducer (state, action) {
state.appState = reduceApp(state, action)
+ window.METAMASK_CACHED_LOG_STATE = state
return state
}
+
+window.logState = function() {
+ var stateString = JSON.stringify(window.METAMASK_CACHED_LOG_STATE, null, 2)
+ console.log(stateString)
+}