You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This is great, but some folks just want "batteries-included" experience where ipfs-provider takes care of loading and initializing existing browserified js-ipfs (think pocs, demos, prototyping, quickly switching between different versions/bundles etc).
Load js-ipfs from custom URL
A solution is to allow user to pass jsIpfsBundleUrl
The above should take care of adding <script> to the pagecontext before init with jsIpfsOpts is executed.
Ultimate fallback to latest js-ipfs
To make it even easier for beginners, ipfs-provider should default jsIpfsBundleUrl to https://unpkg.com/ipfs/dist/index.min.js when getJsIpfs and jsIpfsBundleUrl are absent.
Context
Right now one needs to explicitly pass
ipfs
instance for js-ipfs to work:This is great, but some folks just want "batteries-included" experience where ipfs-provider takes care of loading and initializing existing browserified js-ipfs (think pocs, demos, prototyping, quickly switching between different versions/bundles etc).
Load js-ipfs from custom URL
A solution is to allow user to pass
jsIpfsBundleUrl
The above should take care of adding
<script>
to the pagecontext before init withjsIpfsOpts
is executed.Ultimate fallback to latest js-ipfs
To make it even easier for beginners, ipfs-provider should default
jsIpfsBundleUrl
tohttps://unpkg.com/ipfs/dist/index.min.js
whengetJsIpfs
andjsIpfsBundleUrl
are absent.TL;DR it should be possible to run:
..and get the latest js-ipfs from NPM.
The text was updated successfully, but these errors were encountered: