Skip to content
This repository was archived by the owner on Feb 12, 2024. It is now read-only.

Commit 438f70a

Browse files
hapsodyAlan Shaw
authored and
Alan Shaw
committed
docs: add a explanation of a example's restriction (#2211)
This example doesn't work except the case in localhost ( related to #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
1 parent b84d0c4 commit 438f70a

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

examples/exchange-files-in-browser/README.md

+4
Original file line numberDiff line numberDiff line change
@@ -175,6 +175,10 @@ Check that you got connected:
175175

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

178+
> 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]
179+
180+
[js-libp2p-crypto#105]: https://github.com/libp2p/js-libp2p-crypto/issues/105
181+
178182
### 5. Transfer files between all of your nodes!
179183

180184
Now you can add files through the CLI with:

0 commit comments

Comments
 (0)