Skip to content

Commit

Permalink
docs: add a explanation of a example's restriction
Browse files Browse the repository at this point in the history
This example doesn't work except the case in localhost ( related to ipfs#2153)
This is known because of a restriction with WebCrypto (libp2p/js-libp2p-crypto#105)
I add a explanation of a example's restriction to run
  • Loading branch information
hapsody committed Jul 2, 2019
1 parent f596b01 commit 467958b
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions examples/exchange-files-in-browser/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -175,6 +175,10 @@ Check that you got connected:

![](img/connect-2.png)

> It only works on localhost environments because of a restriction with WebCrypto where it will not load in a page unless that page is loaded over https, or the page is served from localhost: [libp2p/js-libp2p-crypto#105][js-libp2p-crypto#105]
[js-libp2p-crypto#105]: https://github.com/libp2p/js-libp2p-crypto/issues/105

### 5. Transfer files between all of your nodes!

Now you can add files through the CLI with:
Expand Down

0 comments on commit 467958b

Please sign in to comment.