Skip to content
This repository has been archived by the owner on Apr 17, 2023. It is now read-only.

Commit

Permalink
Merge pull request #1922 from blockstack/feature/relative-manifest-image
Browse files Browse the repository at this point in the history
Handle relative icon urls in manifest
  • Loading branch information
hstove committed May 23, 2019
2 parents 9afcd62 + 8ae9fd4 commit fb0f4dc
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/js/components/ui/containers/headers.js
Expand Up @@ -64,14 +64,18 @@ const Header = ({
}) => {
const renderBugs = () => {
if (app) {
const appIcon = app.manifestURI
? new URL(app.icon, app.manifestURI).toString()
: app.icon

return (
<Bugs>
<BlockstackBug invert={invert} size={28} />
<StyledBug.Arrows>
<ChevronDoubleRightIcon color={'rgba(39, 16, 51, 0.2)'} size={18} />
</StyledBug.Arrows>
<Bug size={28} title={app.name}>
<img src={app.icon} alt={app.name} />
<img src={appIcon} alt={app.name} />
</Bug>
</Bugs>
)
Expand Down

0 comments on commit fb0f4dc

Please sign in to comment.