mirror of
https://github.com/kremalicious/metamask-extension.git
synced 2024-12-23 09:52:26 +01:00
some legit linting fixes
This commit is contained in:
parent
f0633463d0
commit
2468949cb5
@ -57,6 +57,7 @@ function createTxNotification (opts) {
|
||||
if (!chrome.notifications) return console.error('Chrome notifications API missing...')
|
||||
|
||||
renderTransactionNotificationSVG(opts, function(err, source){
|
||||
if (err) throw err
|
||||
|
||||
var imageUrl = 'data:image/svg+xml;utf8,' + encodeURIComponent(source)
|
||||
|
||||
|
@ -32,8 +32,7 @@ IconFactory.prototype.generateIdenticonImg = function (address, diameter) {
|
||||
|
||||
// returns svg dom element
|
||||
IconFactory.prototype.generateIdenticonSvg = function (address, diameter) {
|
||||
var numericRepresentation = jsNumberForAddress(address)
|
||||
var cacheId = address+':'+diameter
|
||||
var cacheId = `${address}:${diameter}`
|
||||
// check cache, lazily generate and populate cache
|
||||
var identicon = this.cache[cacheId] || (this.cache[cacheId] = this.generateNewIdenticon(address, diameter))
|
||||
// create a clean copy so you can modify it
|
||||
|
Loading…
Reference in New Issue
Block a user