-
Notifications
You must be signed in to change notification settings - Fork 112
Write JS snippet which rewrites bzz:// urls to gateway urls #174
Comments
Why do we need to include "swarm-gateways.net" in the javascript file? Can we not automatically use whichever host we are on? i.e. if a user is browsing at localhost:8500 then the script will replace |
Or, just replace |
yeah, that might work too. Indeed I think it's simpler, yet functionally equivalent. |
Ok, please check this: ethersphere/swarm-url-rewriter@d369f66 |
So we should add this JS sippet to all our swarm pages, yes? |
See #192 for the error templates. As I see there are no other gateway urls in the swarm codebase. As next step I'm checking the swam homepage |
I realized that there are only relative urls in the swarm homepage, so no need to update that. |
let me see... there is the swarm homepage, there is fabio's dapp overview (swarmapps.eth), and then there are the dapps - but they don't contain bzz:// URLs ... |
Too hacky solution, conflicts with the js of the dapps |
We would like to provide a small JS script which can be added to webpages to rewrite bzz:// links to http://current.gateway/bzz:/ links, so the page can work for users who don't run swarm nodes or any other special swarm software.
See the details here: https://gist.github.com/gbalint/9e43a97a781b482731f1542ff683cf35
The text was updated successfully, but these errors were encountered: