pad: Delete do-nothing sendClientReady wrapper

This commit is contained in:
Richard Hansen 2020-10-19 19:35:30 -04:00 committed by John McLear
parent a712ce457d
commit b1acf6143a

View file

@ -190,7 +190,7 @@ function handshake()
socket.on('reconnect', function () { socket.on('reconnect', function () {
pad.collabClient.setChannelState("CONNECTED"); pad.collabClient.setChannelState("CONNECTED");
pad.sendClientReady(receivedClientVars); sendClientReady(receivedClientVars);
}); });
socket.on('reconnecting', function() { socket.on('reconnecting', function() {
@ -379,11 +379,6 @@ var pad = {
{ {
return paduserlist.users(); return paduserlist.users();
}, },
sendClientReady: function(isReconnect, messageType)
{
messageType = typeof messageType !== 'undefined' ? messageType : 'CLIENT_READY';
sendClientReady(isReconnect, messageType);
},
switchToPad: function(padId) switchToPad: function(padId)
{ {
var newHref = new RegExp(/.*\/p\/[^\/]+/).exec(document.location.pathname) || clientVars.padId; var newHref = new RegExp(/.*\/p\/[^\/]+/).exec(document.location.pathname) || clientVars.padId;