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

Commit fb0f4dc

Browse files
authored
Merge pull request #1922 from blockstack/feature/relative-manifest-image
Handle relative icon urls in manifest
2 parents 9afcd62 + 8ae9fd4 commit fb0f4dc

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

app/js/components/ui/containers/headers.js

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -64,14 +64,18 @@ const Header = ({
6464
}) => {
6565
const renderBugs = () => {
6666
if (app) {
67+
const appIcon = app.manifestURI
68+
? new URL(app.icon, app.manifestURI).toString()
69+
: app.icon
70+
6771
return (
6872
<Bugs>
6973
<BlockstackBug invert={invert} size={28} />
7074
<StyledBug.Arrows>
7175
<ChevronDoubleRightIcon color={'rgba(39, 16, 51, 0.2)'} size={18} />
7276
</StyledBug.Arrows>
7377
<Bug size={28} title={app.name}>
74-
<img src={app.icon} alt={app.name} />
78+
<img src={appIcon} alt={app.name} />
7579
</Bug>
7680
</Bugs>
7781
)

0 commit comments

Comments
 (0)