aboutsummaryrefslogtreecommitdiffstats
path: root/ui
diff options
context:
space:
mode:
authorKevin Serrano <kevgagser@gmail.com>2016-09-09 04:42:05 +0800
committerGitHub <noreply@github.com>2016-09-09 04:42:05 +0800
commit1f0b2ca787670455a2cbecf9d539a7fb66793525 (patch)
tree6d6f927289e77885ccdcd3d29dcf39c7137e9c82 /ui
parent80847739b2d79cc440aec512c84af2769bb06805 (diff)
parenta1e9b951acae8c02d7aab1369667b677aabb53b3 (diff)
downloadtangerine-wallet-browser-1f0b2ca787670455a2cbecf9d539a7fb66793525.tar
tangerine-wallet-browser-1f0b2ca787670455a2cbecf9d539a7fb66793525.tar.gz
tangerine-wallet-browser-1f0b2ca787670455a2cbecf9d539a7fb66793525.tar.bz2
tangerine-wallet-browser-1f0b2ca787670455a2cbecf9d539a7fb66793525.tar.lz
tangerine-wallet-browser-1f0b2ca787670455a2cbecf9d539a7fb66793525.tar.xz
tangerine-wallet-browser-1f0b2ca787670455a2cbecf9d539a7fb66793525.tar.zst
tangerine-wallet-browser-1f0b2ca787670455a2cbecf9d539a7fb66793525.zip
Merge pull request #625 from MetaMask/AddNewLogo
Add new lightweight logo
Diffstat (limited to 'ui')
-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 () {