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

Commit 9105166

Browse files
committed
Revise comments
1 parent f84438a commit 9105166

File tree

2 files changed

+2
-6
lines changed

2 files changed

+2
-6
lines changed

examples/in-browser/index.html

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@
88
// Something like
99
// const SIGNALING_SERVER = '/libp2p-webrtc-star/ip4/127.0.0.1/tcp/9090/ws/ipfs/'
1010
const SIGNALING_SERVER = null
11-
11+
1212
// Make an IPFS node
1313
var ipfs = new Ipfs()
1414

@@ -38,9 +38,7 @@
3838
if (err) {
3939
throw err
4040
}
41-
4241
if (SIGNALING_SERVER) {
43-
4442
// Add at least one libp2p-webrtc-star address. Without an address like this
4543
// the libp2p-webrtc-star transport won't be installed, and the resulting
4644
// node won't be able to dial out to libp2p-webrtc-star addresses.

src/core/index.js

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,6 @@ function IPFS (repoInstance) {
6868
this.bitswap = bitswap(this)
6969
this.ping = ping(this)
7070

71-
// Export Buffer to somewhere where API consumers can get at it, for when
72-
// we're running in a browser but still expect Buffer instances to be passed
73-
// in.
71+
// expose Buffer for browser applications
7472
this.Buffer = Buffer
7573
}

0 commit comments

Comments
 (0)