fix(assist): added random tabID for prev version (ee)

This commit is contained in:
Alexander Zavorotynskiy 2023-06-06 12:53:15 +02:00
parent 104fb2448b
commit 525a6b8337
2 changed files with 2 additions and 2 deletions

View file

@ -318,7 +318,7 @@ module.exports = {
socket.roomId = extractRoomId(socket.peerId);
// Set default tabId for back compatibility
if (connTabId === null) {
connTabId = "back-compatibility"
connTabId = (Math.random() + 1).toString(36).substring(2);
}
socket.tabId = connTabId;
socket.identity = socket.handshake.query.identity;

View file

@ -288,7 +288,7 @@ module.exports = {
socket.roomId = extractRoomId(socket.peerId);
// Set default tabId for back compatibility
if (connTabId === null) {
connTabId = "back-compatibility"
connTabId = (Math.random() + 1).toString(36).substring(2);
}
socket.tabId = connTabId;
socket.identity = socket.handshake.query.identity;