From c8640537e651621a00e66fd020e5e6c55b8b31ff Mon Sep 17 00:00:00 2001 From: kumavis Date: Tue, 10 May 2016 23:53:07 -0700 Subject: hotfix - identicon jazz bug --- ui/app/components/identicon.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'ui/app/components/identicon.js') diff --git a/ui/app/components/identicon.js b/ui/app/components/identicon.js index 8294ce4d5..3fbf3c699 100644 --- a/ui/app/components/identicon.js +++ b/ui/app/components/identicon.js @@ -14,7 +14,6 @@ function IdenticonComponent() { } IdenticonComponent.prototype.render = function() { - debugger return ( h('div', { key: 'identicon-' + this.props.address, @@ -38,8 +37,13 @@ IdenticonComponent.prototype.componentDidMount = function(){ var numericRepresentation = jsNumberForAddress(address) var container = findDOMNode(this) + // jazzicon with hack to fix inline svg error var identicon = jazzicon(this.diameter, numericRepresentation) - container.appendChild(identicon) + var identiconSrc = identicon.innerHTML + var dataUri = 'data:image/svg+xml;charset=utf-8,'+encodeURIComponent(identiconSrc) + var img = document.createElement('img') + img.src = dataUri + container.appendChild(img) } function jsNumberForAddress(address) { -- cgit