Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging

This commit is contained in:
yflory committed 2017-02-28 13:12:53 +01:00
commit c0278ba77f
5 files changed
+12 -8

No files matched your search

+9 -5
View File
@@ -66,11 +66,15 @@ define([
};
var whenRealtimeSyncs = common.whenRealtimeSyncs = function (realtime, cb) {
// FIXME realtime.onSettle should handle this but it doesn't seem to
if (realtime.getAuthDoc() === realtime.getUserDoc()) {
return void cb();
}
realtime.onSettle(cb);
realtime.sync();
window.setTimeout(function () {
if (realtime.getAuthDoc() === realtime.getUserDoc()) {
return void cb();
}
realtime.onSettle(function () {
cb();
});
}, 0);
};
var getWebsocketURL = common.getWebsocketURL = function () {