-
Notifications
You must be signed in to change notification settings - Fork 197
Handle relative icon urls in manifest #1875
Conversation
|
The PR mentioned in this issue is still open. But this is ready to review. It assumes that the manifest contains a reference to the url it was loaded from |
|
I added a reference in the issue description to MDN for image src in the web manifest. |
timstackblock
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It seems certain apps still do not display the icon with this change.
|
Have you tested with stx-labs/stacks.js#629? |
Just reran the test with #629 looks good |
|
Because stx-labs/stacks.js#629 is not included in the local version of blockstack.js yet, I think we'll need to wait on that before merging this. |
|
I'm closing this, but I merged your commit in #1922 , which includes the latest blockstack.js. Thanks! |



This PR
uses the manifest url (if available) to resolve a relative icon url retrieved from the app manifest
fixes Icon in app manifest are not resolved correctly #1783
This only comes into effect after stx-labs/stacks.js#629 is merged and the new version of blockstack.js is used - until then app developers need to specify absolute icon urls in their manifest.
Re image src (from MDN: https://developer.mozilla.org/en-US/docs/Web/Manifest#icons)
srcThe path to the image file. If src is a relative URL, the base URL will be the URL of the manifest.