Skip to content
This repository has been archived by the owner on Dec 11, 2019. It is now read-only.

Commit

Permalink
Merge pull request #7437 from brave/fix_pocket_icon
Browse files Browse the repository at this point in the history
shifted a smidge of logic lower per suggestion by jonathansampson
  • Loading branch information
bsclifton authored Mar 2, 2017
2 parents e01a2a9 + 8e80d8d commit 84129f8
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions app/common/state/extensionState.js
Original file line number Diff line number Diff line change
Expand Up @@ -91,13 +91,6 @@ const extensionState = {
tabId = tabId ? tabId.toString() : '-1'
let basePath = browserAction.get('base_path')
if (basePath) {
let baseIcons16 = browserAction.getIn(['icons', '16'])
let baseIcons48 = browserAction.getIn(['icons', '48'])
if (baseIcons16 && baseIcons48) {
return `-webkit-image-set(
url(${basePath}/${baseIcons16}) 1x,
url(${basePath}/${baseIcons48}) 2x`
}
let baseIcons19 = browserAction.getIn(['icons', '19'])
let baseIcons38 = browserAction.getIn(['icons', '38'])
if (baseIcons19 && baseIcons38) {
Expand All @@ -119,6 +112,13 @@ const extensionState = {
url(${basePath}/${basePath19}) 1x,
url(${basePath}/${basePath38}) 2x`
}
let baseIcons16 = browserAction.getIn(['icons', '16'])
let baseIcons48 = browserAction.getIn(['icons', '48'])
if (baseIcons16 && baseIcons48) {
return `-webkit-image-set(
url(${basePath}/${baseIcons16}) 1x,
url(${basePath}/${baseIcons48}) 2x`
}
}
return ''
},
Expand Down

0 comments on commit 84129f8

Please sign in to comment.