aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/identicon.js
diff options
context:
space:
mode:
authorkumavis <aaron@kumavis.me>2016-06-24 07:09:25 +0800
committerkumavis <aaron@kumavis.me>2016-06-24 07:09:25 +0800
commit7eb89613ccee118d97a48d83336bbea44614da18 (patch)
treea3a72177a18b6c1284896950d82473b1ba718f58 /ui/app/components/identicon.js
parentcc7dbace38bc41bb177738586e9a60adf541d2ab (diff)
downloadtangerine-wallet-browser-7eb89613ccee118d97a48d83336bbea44614da18.tar
tangerine-wallet-browser-7eb89613ccee118d97a48d83336bbea44614da18.tar.gz
tangerine-wallet-browser-7eb89613ccee118d97a48d83336bbea44614da18.tar.bz2
tangerine-wallet-browser-7eb89613ccee118d97a48d83336bbea44614da18.tar.lz
tangerine-wallet-browser-7eb89613ccee118d97a48d83336bbea44614da18.tar.xz
tangerine-wallet-browser-7eb89613ccee118d97a48d83336bbea44614da18.tar.zst
tangerine-wallet-browser-7eb89613ccee118d97a48d83336bbea44614da18.zip
icon-factory - overhaul to provide svg or imagified el
Diffstat (limited to 'ui/app/components/identicon.js')
-rw-r--r--ui/app/components/identicon.js7
1 files changed, 2 insertions, 5 deletions
diff --git a/ui/app/components/identicon.js b/ui/app/components/identicon.js
index 5fe07ce7a..c17bd5122 100644
--- a/ui/app/components/identicon.js
+++ b/ui/app/components/identicon.js
@@ -39,12 +39,9 @@ IdenticonComponent.prototype.componentDidMount = function () {
if (!address) return
var container = findDOMNode(this)
-
var diameter = state.diameter || this.defaultDiameter
- var dataUri = iconFactory.iconForAddress(address, diameter)
-
- var img = document.createElement('img')
- img.src = dataUri
+ var imageify = state.imageify
+ var img = iconFactory.iconForAddress(address, diameter, imageify)
container.appendChild(img)
}