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

Use const and fix lint warnings

This commit is contained in:
Daijiro Wachi 2017-10-30 20:08:10 +01:00
parent 0bfa10e501
commit 6574499165

View File

@ -43,7 +43,7 @@ function rootReducer (state, action) {
}
window.logStateString = function (cb) {
let state = window.METAMASK_CACHED_LOG_STATE
const state = window.METAMASK_CACHED_LOG_STATE
const version = global.platform.getVersion()
const browser = window.navigator.userAgent
return global.platform.getPlatformInfo((err, platform) => {
@ -53,7 +53,7 @@ window.logStateString = function (cb) {
state.version = version
state.platform = platform
state.browser = browser
let stateString = JSON.stringify(state, removeSeedWords, 2)
const stateString = JSON.stringify(state, removeSeedWords, 2)
return cb(null, stateString)
})
}