Skip to content

Commit df7364b

Browse files
committed
Merge branch 'master' of github.com:shama/letswritecode
* 'master' of github.com:shama/letswritecode: Fix link to video Fix typo
2 parents 1b6e42f + e06c981 commit df7364b

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

simple-p2p-with-webrtc/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33

44
> [https://youtu.be/jY9k4rfXwEI](https://youtu.be/jY9k4rfXwEI)
55
6-
> UPDATED with WebRTC: [https://youtu.be/gDnS1tnp1ZQ](https://youtu.be/gDnS1tnp1ZQ)
6+
> UPDATED with WebRTC: [https://www.youtube.com/watch?v=IqPJb6o_S1Q](https://www.youtube.com/watch?v=IqPJb6o_S1Q)
77
88
Install [Node.js](https://nodejs.org/).
99

simple-p2p-with-webrtc/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ navigator.mediaDevices.getUserMedia({ video: true, audio: true }).then(function
1515

1616
const players = {}
1717
swarm.on('connect', function (peer, id) {
18-
if (!players[players]) {
18+
if (!players[id]) {
1919
players[id] = new Player()
2020
peer.on('data', function (data) {
2121
data = JSON.parse(data.toString())

0 commit comments

Comments
 (0)