Merge pull request #3816 from MetaMask/kumavis-patch-2

identicon - set blockies height and width to identicon diameter
This commit is contained in:
Dan Finlay 2018-03-31 09:31:03 -07:00 committed by GitHub
commit a180fb0320
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 3 deletions

View File

@ -105,9 +105,8 @@ IdenticonComponent.prototype.componentDidUpdate = function () {
function _generateBlockie (container, address, diameter) {
const img = new Image()
img.src = toDataUrl(address)
const dia = !diameter || diameter < 50 ? 50 : diameter
img.height = dia * 1.25
img.width = dia * 1.25
img.height = diameter
img.width = diameter
container.appendChild(img)
}