1
0
mirror of https://github.com/kremalicious/metamask-extension.git synced 2024-12-23 09:52:26 +01:00

Include browser version

This commit is contained in:
Kevin Serrano 2017-10-04 09:56:40 -07:00
parent 147b81068a
commit 2f135c2e68
No known key found for this signature in database
GPG Key ID: BF999DEFC7371BA1

View File

@ -44,9 +44,11 @@ function rootReducer (state, action) {
window.logState = function () {
let state = window.METAMASK_CACHED_LOG_STATE
const version = global.platform.getVersion()
const browser = global.navigator.userAgent()
const platform = global.platform.getPlatformInfo()
state.version = version
state.platform = platform
state.browser = browser
let stateString = JSON.stringify(state, removeSeedWords, 2)
return stateString
}