mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
Include OS version
This commit is contained in:
parent
f12504cd09
commit
147b81068a
@ -17,6 +17,10 @@ class ExtensionPlatform {
|
|||||||
return extension.runtime.getManifest().version
|
return extension.runtime.getManifest().version
|
||||||
}
|
}
|
||||||
|
|
||||||
|
getPlatformInfo () {
|
||||||
|
return extension.runtime.getPlatformInfo()
|
||||||
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
module.exports = ExtensionPlatform
|
module.exports = ExtensionPlatform
|
||||||
|
@ -44,7 +44,9 @@ function rootReducer (state, action) {
|
|||||||
window.logState = function () {
|
window.logState = function () {
|
||||||
let state = window.METAMASK_CACHED_LOG_STATE
|
let state = window.METAMASK_CACHED_LOG_STATE
|
||||||
const version = global.platform.getVersion()
|
const version = global.platform.getVersion()
|
||||||
|
const platform = global.platform.getPlatformInfo()
|
||||||
state.version = version
|
state.version = version
|
||||||
|
state.platform = platform
|
||||||
let stateString = JSON.stringify(state, removeSeedWords, 2)
|
let stateString = JSON.stringify(state, removeSeedWords, 2)
|
||||||
return stateString
|
return stateString
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user