From 43e28788d7763de61d5190e8cca406077b8bdd9a Mon Sep 17 00:00:00 2001 From: Kevin Serrano Date: Fri, 19 Aug 2016 14:47:49 -0700 Subject: Create replacement logo for non-webgl --- ui/app/components/mascot.js | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'ui/app/components/mascot.js') diff --git a/ui/app/components/mascot.js b/ui/app/components/mascot.js index ddd51f8ba..e99720e1b 100644 --- a/ui/app/components/mascot.js +++ b/ui/app/components/mascot.js @@ -34,10 +34,16 @@ Mascot.prototype.render = function () { } Mascot.prototype.componentDidMount = function () { - if (!this.logo) return var targetDivId = 'metamask-mascot-container' var container = document.getElementById(targetDivId) - container.appendChild(this.logo.canvas) + if (!this.logo) { + var staticLogo = document.createElement('img') + staticLogo.src = 'images/icon-128.png' + staticLogo.style.marginBottom = '20px' + container.appendChild(staticLogo) + } else { + container.appendChild(this.logo.canvas) + } } Mascot.prototype.componentWillUnmount = function () { -- cgit