Skip to content

Commit 26254fc

Browse files
committed
Remove /# from getMyUserIdx comparison as users doesnt contain it
1 parent 25f3559 commit 26254fc

File tree

1 file changed

+1
-3
lines changed

1 file changed

+1
-3
lines changed

client.js

+1-3
Original file line numberDiff line numberDiff line change
@@ -157,9 +157,7 @@ p.getMyUserIdx = function() {
157157

158158
for(var i = 0; i < users.length; i++) {
159159

160-
// added in /# because it seems that socket.io-client adds /# to the id
161-
// where on the backend socket.id does not have /#
162-
if(users[ i ] === '/#' + this.io.id) {
160+
if(users[ i ] === this.io.id) {
163161
idx = i;
164162
break;
165163
}

0 commit comments

Comments
 (0)