some legit linting fixes

This commit is contained in:
kumavis 2016-06-23 16:53:45 -07:00
parent f0633463d0
commit 2468949cb5
2 changed files with 2 additions and 2 deletions

View File

@ -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)

View File

@ -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