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(),
|
rev: pad.getHeadRevisionNumber(),
|
||||||
time: currentTime,
|
time: currentTime,
|
||||||
},
|
},
|
||||||
socketTransportProtocols: settings.socketTransportProtocols,
|
|
||||||
colorPalette: authorManager.getColorPalette(),
|
colorPalette: authorManager.getColorPalette(),
|
||||||
clientIp: '127.0.0.1',
|
clientIp: '127.0.0.1',
|
||||||
userColor: authorColorId,
|
userColor: authorColorId,
|
||||||
|
|
|
@ -36,8 +36,8 @@ describe('Messages in the COLLABROOM', function () {
|
||||||
// User 1 starts sending a change to the server.
|
// User 1 starts sending a change to the server.
|
||||||
let sendStarted;
|
let sendStarted;
|
||||||
const finishSend = (() => {
|
const finishSend = (() => {
|
||||||
const socketJsonObj = helper.padChrome$.window.pad.socket.json;
|
const socketJsonObj = helper.padChrome$.window.pad.socket;
|
||||||
const sendBackup = socketJsonObj.send;
|
const sendBackup = socketJsonObj.emit;
|
||||||
let startSend;
|
let startSend;
|
||||||
sendStarted = new Promise((resolve) => { startSend = resolve; });
|
sendStarted = new Promise((resolve) => { startSend = resolve; });
|
||||||
let finishSend;
|
let finishSend;
|
||||||
|
@ -46,7 +46,7 @@ describe('Messages in the COLLABROOM', function () {
|
||||||
startSend();
|
startSend();
|
||||||
sendP.then(() => {
|
sendP.then(() => {
|
||||||
socketJsonObj.send = sendBackup;
|
socketJsonObj.send = sendBackup;
|
||||||
socketJsonObj.send(...args);
|
socketJsonObj.send('message', ...args);
|
||||||
});
|
});
|
||||||
};
|
};
|
||||||
return finishSend;
|
return finishSend;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue