mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-22 17:33:23 +01:00
making eslint happy
This commit is contained in:
parent
bd48d858f4
commit
75ef848196
@ -1566,7 +1566,7 @@ function setUseBlockie (val) {
|
||||
})
|
||||
dispatch({
|
||||
type: actions.SET_USE_BLOCKIE,
|
||||
value: val
|
||||
value: val,
|
||||
})
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ function IdenticonComponent () {
|
||||
|
||||
function mapStateToProps (state) {
|
||||
return {
|
||||
useBlockie: state.metamask.useBlockie
|
||||
useBlockie: state.metamask.useBlockie,
|
||||
}
|
||||
}
|
||||
|
||||
@ -102,15 +102,16 @@ IdenticonComponent.prototype.componentDidUpdate = function () {
|
||||
}
|
||||
}
|
||||
|
||||
function _generateBlockie(container, address, diameter) {
|
||||
function _generateBlockie (container, address, diameter) {
|
||||
const img = new Image()
|
||||
img.src = toDataUrl(address)
|
||||
const dia = !diameter || diameter < 50 ? 50 : diameter
|
||||
img.height, img.width = dia * 1.25
|
||||
img.height = dia * 1.25
|
||||
img.width = dia * 1.25
|
||||
container.appendChild(img)
|
||||
}
|
||||
|
||||
function _generateJazzicon(container, address, diameter) {
|
||||
function _generateJazzicon (container, address, diameter) {
|
||||
const img = iconFactory.iconForAddress(address, diameter)
|
||||
container.appendChild(img)
|
||||
}
|
||||
|
@ -317,7 +317,7 @@ function reduceMetamask (state, action) {
|
||||
|
||||
case actions.SET_USE_BLOCKIE:
|
||||
return extend(metamaskState, {
|
||||
useBlockie: action.value
|
||||
useBlockie: action.value,
|
||||
})
|
||||
|
||||
default:
|
||||
|
Loading…
Reference in New Issue
Block a user