window.ipfs loading script from external CDN #570
Labels
exp/intermediate
Prior experience is likely helpful
kind/enhancement
A net-new feature or improvement to an existing feature
status/ready
Ready to be worked
Currently, if
window.ipfs
can't be found, we load ipfs-api from unpkg (https://github.com/ipfs-shipyard/ipfs-companion/blob/50db9c08d5bf0e5297981ff474da07585aa8a8ce/docs/examples/window.ipfs-fallback.html#L21). Rather than trusting unpkg, we could bundle ipfs-api in the extension and serve it from the extension (https://developer.mozilla.org/en-US/docs/Mozilla/Add-ons/WebExtensions/manifest.json/web_accessible_resources)This will enable ipfs-companion to load ipfs-api even if internet is not accessible and faster even if internet access is present.
The text was updated successfully, but these errors were encountered: