aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components/mascot.js
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-08-20 05:47:49 +0800
committerKevin Serrano <kevgagser@gmail.com>2016-08-20 05:47:49 +0800
commit43e28788d7763de61d5190e8cca406077b8bdd9a (patch)
treeef00337591bd04d964d0702effe19a2f6cc16b8b /ui/app/components/mascot.js
parent30af7e96cba7a88d46d3376097e4d44b715f834c (diff)
downloadtangerine-wallet-browser-43e28788d7763de61d5190e8cca406077b8bdd9a.tar.gz
tangerine-wallet-browser-43e28788d7763de61d5190e8cca406077b8bdd9a.tar.zst
tangerine-wallet-browser-43e28788d7763de61d5190e8cca406077b8bdd9a.zip
Create replacement logo for non-webgl
Diffstat (limited to 'ui/app/components/mascot.js')
-rw-r--r--ui/app/components/mascot.js10
1 files changed, 8 insertions, 2 deletions
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 () {