mirror of
https://github.com/cryptpad/cryptpad.git
synced 2026-09-14 11:05:41 +05:00
Fix bug when finding unique OO id
https://github.com/cryptpad/cryptpad/issues/1446
This commit is contained in:
parent
0604b708dc
commit
82daeb98aa
@ -198,7 +198,7 @@ define([
|
||||
myOOId = Util.createRandomInteger();
|
||||
// f: function used in .some(f) but defined outside of the while
|
||||
var f = function (id) {
|
||||
return ids[id] === myOOId;
|
||||
return ids[id].ooid === myOOId;
|
||||
};
|
||||
while (Object.keys(ids).some(f)) {
|
||||
myOOId = Util.createRandomInteger();
|
||||
|
||||
Loading…
Reference in New Issue
Block a user