Quick hack to fixup folks using ipfs.tech as a gateway for some reason.
As long the user has JS, location.replace() will replace the URL in user's browser history with .io one.
If there is no JS, a plain text message is displayed pointing the user at the list of public gateways.
Quick hack to fixup folks using ipfs.tech as a gateway for some reason.
As long the user has JS,
location.replace()
will replace the URL in user's browser history with .io one. If there is no JS, a plain text message is displayed pointing the user at the list of public gateways.DEMO
https://ipfs.tech/ipfs/QmbWqxBEKC3P8tqsKc98xmWNzrzDtRLMiMPL8wBuTGsMnR