Merge branch 'staging' of github.com:xwiki-labs/cryptpad into staging
This commit is contained in:
@@ -44,6 +44,18 @@ define([
|
||||
return;
|
||||
};
|
||||
|
||||
var whenRealtimeSyncs = common.whenRealtimeSyncs = function (realtime, cb) {
|
||||
realtime.sync();
|
||||
var interval = 300;
|
||||
var check = function () {
|
||||
if (realtime.getAuthDoc() !== realtime.getUserDoc()) {
|
||||
return window.setTimeout(check, interval);
|
||||
}
|
||||
cb();
|
||||
};
|
||||
window.setTimeout(check, interval);
|
||||
};
|
||||
|
||||
var getWebsocketURL = common.getWebsocketURL = function () {
|
||||
if (!Config.websocketPath) { return Config.websocketURL; }
|
||||
var path = Config.websocketPath;
|
||||
|
||||
Reference in New Issue
Block a user