mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-05-05 14:47:12 -04:00
Remove padvar.
This commit is contained in:
parent
dd3091c78a
commit
6bad616bf2
2 changed files with 3 additions and 4 deletions
|
@ -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,
|
||||
|
|
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue