Skip to content

Commit 53666c3

Browse files
authored
Fix typo
1 parent 57c0b1a commit 53666c3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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)