Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Normalize dweb: in href and src #289

Merged
merged 3 commits into from Oct 10, 2017
Merged

Normalize dweb: in href and src #289

merged 3 commits into from Oct 10, 2017

Conversation

lidel
Copy link
Member

@lidel lidel commented Oct 9, 2017

This PR implements #286.

Content script detects IPFS-related protocols in href and src attributes of Elements such as <a> or <img> and replaces them with URL at the user-specified public HTTP gateway.
If IPFS API is online, HTTP request will be redirected to custom gateway.

This normalization logic is enabled by "Catch Unhandled IPFS Protocols" experiment.

Content script detects IPFS-related protocols in `href` and `src` attributes of
Elements such as `<a>` or `<img>` and replaces them with URL at the
user-specified public HTTP gateway.  Note that if IPFS API is online, HTTP
request will be redirected to custom gateway.

Closes #286
@lidel lidel self-assigned this Oct 9, 2017
@lidel lidel merged commit 03491f5 into master Oct 10, 2017
@lidel lidel deleted the dweb-in-href-and-src branch October 10, 2017 15:57
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant