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

Commit 3e356f0

Browse files
committed
fix: be nodejs 4 compatible
1 parent 5453e60 commit 3e356f0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/pubsub.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ function waitForPeers (ipfs, topic, peersToWait, callback) {
1717
}
1818

1919
const missingPeers = peersToWait
20-
.map((e) => peers.includes(e))
20+
.map((e) => peers.indexOf(e) !== -1)
2121
.filter((e) => !e)
2222

2323
if (missingPeers.length === 0) {

0 commit comments

Comments
 (0)