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.js7
1 files changed, 5 insertions, 2 deletions
diff --git a/ui/app/reducers.js b/ui/app/reducers.js
index 0af7ee81c..3d0a58f81 100644
--- a/ui/app/reducers.js
+++ b/ui/app/reducers.js
@@ -45,12 +45,15 @@ window.logStateString = function (cb) {
let state = window.METAMASK_CACHED_LOG_STATE
const version = global.platform.getVersion()
const browser = window.navigator.userAgent
- return global.platform.getPlatformInfo((platform) => {
+ return global.platform.getPlatformInfo((err, platform) => {
+ if (err) {
+ return cb(err)
+ }
state.version = version
state.platform = platform
state.browser = browser
let stateString = JSON.stringify(state, removeSeedWords, 2)
- return cb(stateString)
+ return cb(null, stateString)
})
}