Remove padvar.

This commit is contained in:
SamTV12345 2024-03-08 18:38:06 +01:00
parent dd3091c78a
commit 6bad616bf2
2 changed files with 3 additions and 4 deletions

View file

@ -957,7 +957,6 @@ const handleClientReady = async (socket:any, message: typeof ChatMessage) => {
rev: pad.getHeadRevisionNumber(),
time: currentTime,
},
socketTransportProtocols: settings.socketTransportProtocols,
colorPalette: authorManager.getColorPalette(),
clientIp: '127.0.0.1',
userColor: authorColorId,

View file

@ -36,8 +36,8 @@ describe('Messages in the COLLABROOM', function () {
// User 1 starts sending a change to the server.
let sendStarted;
const finishSend = (() => {
const socketJsonObj = helper.padChrome$.window.pad.socket.json;
const sendBackup = socketJsonObj.send;
const socketJsonObj = helper.padChrome$.window.pad.socket;
const sendBackup = socketJsonObj.emit;
let startSend;
sendStarted = new Promise((resolve) => { startSend = resolve; });
let finishSend;
@ -46,7 +46,7 @@ describe('Messages in the COLLABROOM', function () {
startSend();
sendP.then(() => {
socketJsonObj.send = sendBackup;
socketJsonObj.send(...args);
socketJsonObj.send('message', ...args);
});
};
return finishSend;