aboutsummaryrefslogtreecommitdiffstats
path: root/ui
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
parent30af7e96cba7a88d46d3376097e4d44b715f834c (diff)
downloadtangerine-wallet-browser-43e28788d7763de61d5190e8cca406077b8bdd9a.tar
tangerine-wallet-browser-43e28788d7763de61d5190e8cca406077b8bdd9a.tar.gz
tangerine-wallet-browser-43e28788d7763de61d5190e8cca406077b8bdd9a.tar.bz2
tangerine-wallet-browser-43e28788d7763de61d5190e8cca406077b8bdd9a.tar.lz
tangerine-wallet-browser-43e28788d7763de61d5190e8cca406077b8bdd9a.tar.xz
tangerine-wallet-browser-43e28788d7763de61d5190e8cca406077b8bdd9a.tar.zst
tangerine-wallet-browser-43e28788d7763de61d5190e8cca406077b8bdd9a.zip
Create replacement logo for non-webgl
Diffstat (limited to 'ui')
-rw-r--r--ui/app/components/mascot.js10
-rw-r--r--ui/app/unlock.js3
2 files changed, 10 insertions, 3 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 () {
diff --git a/ui/app/unlock.js b/ui/app/unlock.js
index a7896d640..7cc1699c3 100644
--- a/ui/app/unlock.js
+++ b/ui/app/unlock.js
@@ -3,10 +3,11 @@ const Component = require('react').Component
const h = require('react-hyperscript')
const connect = require('react-redux').connect
const actions = require('./actions')
-const Mascot = require('./components/mascot')
const getCaretCoordinates = require('textarea-caret')
const EventEmitter = require('events').EventEmitter
+const Mascot = require('./components/mascot')
+
module.exports = connect(mapStateToProps)(UnlockScreen)
inherits(UnlockScreen, Component)