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

Commit 9e1cd3e

Browse files
daviddiasrichardschneider
authored andcommitted
docs: reorg exchange files exemple
1 parent 5842cde commit 9e1cd3e

File tree

4 files changed

+5
-5
lines changed

4 files changed

+5
-5
lines changed

examples/exchange-files-in-browser/package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
"name": "exchange-files-browser",
33
"version": "0.0.0",
44
"scripts": {
5-
"bundle": "browserify public/js/app.js > public/js/bundle.js",
5+
"bundle": "browserify public/app.js > public/bundle.js",
66
"dev": "npm run bundle && npm run start",
77
"start": "http-server -c-1 -p 12345 public"
88
},

examples/exchange-files-in-browser/public/js/app.js renamed to examples/exchange-files-in-browser/public/app.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,8 +36,8 @@ function start () {
3636
config: {
3737
Addresses: {
3838
Swarm: [
39-
'/dns4/wrtc-star.discovery.libp2p.io/tcp/443/wss/p2p-webrtc-star'
40-
// '/dns4/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-websocket-star'
39+
// '/dns4/wrtc-star.discovery.libp2p.io/tcp/443/wss/p2p-webrtc-star'
40+
'/dns4/ws-star.discovery.libp2p.io/tcp/443/wss/p2p-websocket-star'
4141
]
4242
}
4343
}

examples/exchange-files-in-browser/public/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<html lang="en">
33
<head>
44
<meta charset="UTF-8">
5-
<link rel="stylesheet" href="css/app.css">
5+
<link rel="stylesheet" href="app.css">
66
<title>IPFS - Transfer Files</title>
77
</head>
88

@@ -69,7 +69,7 @@ <h2>Files</h2>
6969

7070
<!-- The IPFS node module -->
7171
<script src="//unpkg.com/ipfs/dist/index.js"></script>
72-
<script src="js/app.js"></script>
72+
<script src="app.js"></script>
7373
<!-- <script src="js/bundle.js"></script> -->
7474
</body>
7575
</html>

0 commit comments

Comments
 (0)