aboutsummaryrefslogtreecommitdiffstats
path: root/ui/app/components
diff options
context:
space:
mode:
authorDan Finlay <dan@danfinlay.com>2016-09-09 02:20:55 +0800
committerDan Finlay <dan@danfinlay.com>2016-09-09 02:22:04 +0800
commit20ae4c2689ed82016a71e74b36565eaed78f3f4c (patch)
tree2da4463b327ba33bc3180ee52ab6f0507069efb6 /ui/app/components
parent452ce14fda683a92c6c34518ccec53cfc6fd863d (diff)
downloadtangerine-wallet-browser-20ae4c2689ed82016a71e74b36565eaed78f3f4c.tar
tangerine-wallet-browser-20ae4c2689ed82016a71e74b36565eaed78f3f4c.tar.gz
tangerine-wallet-browser-20ae4c2689ed82016a71e74b36565eaed78f3f4c.tar.bz2
tangerine-wallet-browser-20ae4c2689ed82016a71e74b36565eaed78f3f4c.tar.lz
tangerine-wallet-browser-20ae4c2689ed82016a71e74b36565eaed78f3f4c.tar.xz
tangerine-wallet-browser-20ae4c2689ed82016a71e74b36565eaed78f3f4c.tar.zst
tangerine-wallet-browser-20ae4c2689ed82016a71e74b36565eaed78f3f4c.zip
Fix logo usage for metamask-logo v2.0.0
- No longer need to check for webGL compliance (svg rendered!) - logo.canvas has been replaced with logo.container, since svg doesn't render to canvas but to an element. Otherwise, worked with very little effort!! Fixes #624
Diffstat (limited to 'ui/app/components')
-rw-r--r--ui/app/components/mascot.js17
1 files changed, 3 insertions, 14 deletions
diff --git a/ui/app/components/mascot.js b/ui/app/components/mascot.js
index f2b00262b..d0d599ea0 100644
--- a/ui/app/components/mascot.js
+++ b/ui/app/components/mascot.js
@@ -14,7 +14,6 @@ function Mascot () {
pxNotRatio: true,
width: 200,
height: 200,
- staticImage: './images/icon-512.png',
})
if (!this.logo.webGLSupport) return
this.refollowMouse = debounce(this.logo.setFollowMouse.bind(this.logo, true), 1000)
@@ -27,28 +26,18 @@ Mascot.prototype.render = function () {
// and we dont get that until render
this.handleAnimationEvents()
- return (
-
- h('#metamask-mascot-container')
-
- )
+ return h('#metamask-mascot-container')
}
Mascot.prototype.componentDidMount = function () {
var targetDivId = 'metamask-mascot-container'
var container = document.getElementById(targetDivId)
- if (!this.logo.webGLSupport) {
- var staticLogo = this.logo.staticLogo
- staticLogo.style.marginBottom = '40px'
- container.appendChild(staticLogo)
- } else {
- container.appendChild(this.logo.canvas)
- }
+ container.appendChild(this.logo.container)
}
Mascot.prototype.componentWillUnmount = function () {
if (!this.logo.webGLSupport) return
- this.logo.canvas.remove()
+ this.logo.container.remove()
}
Mascot.prototype.handleAnimationEvents = function () {