Skip to content

Commit b9e5511

Browse files
committed
Remove /# as its unecessary cause it was fixed in socketio/socket.io#2509
1 parent 26254fc commit b9e5511

File tree

1 file changed

+2
-4
lines changed

1 file changed

+2
-4
lines changed

client.js

+2-4
Original file line numberDiff line numberDiff line change
@@ -181,9 +181,7 @@ p.getRoomData = function() {
181181

182182
p.setIsInitialized = function() {
183183

184-
// added in /# because it seems that socket.io-client adds /# to the id
185-
// where on the backend socket.id does not have /#
186-
var room = this.getRoom().setVar( 'pv_init/#' + this.io.id, true );
184+
var room = this.getRoom().setVar( 'pv_init' + this.io.id, true );
187185
};
188186

189187
p.play = function() {
@@ -269,7 +267,7 @@ function checkAllInitialized() {
269267

270268
users.forEach( function( user ) {
271269

272-
isAllInited = Boolean(data[ 'pv_init/#' + user ]) && isAllInited;
270+
isAllInited = Boolean(data[ 'pv_init' + user ]) && isAllInited;
273271
});
274272

275273
if( this.isAllInitialized !== isAllInited ) {

0 commit comments

Comments
 (0)