This repository was archived by the owner on Apr 17, 2023. It is now read-only.
Handle relative icon urls in manifest#1875
Closed
friedger wants to merge 1 commit intostacks-archive:developfrom
Closed
Handle relative icon urls in manifest#1875friedger wants to merge 1 commit intostacks-archive:developfrom
friedger wants to merge 1 commit intostacks-archive:developfrom
Conversation
Contributor
Author
|
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 |
Contributor
Author
|
I added a reference in the issue description to MDN for image src in the web manifest. |
Contributor
Contributor
timstackblock
left a comment
There was a problem hiding this comment.
It seems certain apps still do not display the icon with this change.
Contributor
Contributor
Author
|
Have you tested with stx-labs/stacks.js#629? |
Contributor
Just reran the test with #629 looks good |
timstackblock
approved these changes
Apr 25, 2019
Contributor
|
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. |
Contributor
|
I'm closing this, but I merged your commit in #1922 , which includes the latest blockstack.js. Thanks! |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.



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.