Fix 'not a function' error
This commit is contained in:
parent
acfaaa7d56
commit
ec64ac485d
@ -13,7 +13,7 @@ define([
|
|||||||
/*
|
/*
|
||||||
TODO make this not blow up when disconnected or lagging...
|
TODO make this not blow up when disconnected or lagging...
|
||||||
*/
|
*/
|
||||||
common.whenRealtimeSyncs = function (realtime, cb) {
|
common.whenRealtimeSyncs = function (Cryptpad, realtime, cb) {
|
||||||
realtime.sync();
|
realtime.sync();
|
||||||
|
|
||||||
window.setTimeout(function () {
|
window.setTimeout(function () {
|
||||||
@ -28,7 +28,7 @@ define([
|
|||||||
if (common.infiniteSpinnerDetected) { return; }
|
if (common.infiniteSpinnerDetected) { return; }
|
||||||
|
|
||||||
// inform the user their session is in a bad state
|
// inform the user their session is in a bad state
|
||||||
common.confirm(Messages.realtime_unrecoverableError, function (yes) {
|
Cryptpad.confirm(Messages.realtime_unrecoverableError, function (yes) {
|
||||||
if (!yes) { return; }
|
if (!yes) { return; }
|
||||||
window.location.reload();
|
window.location.reload();
|
||||||
});
|
});
|
||||||
|
|||||||
@ -132,7 +132,9 @@ define([
|
|||||||
common.initMessagingUI = Messaging.UI.init;
|
common.initMessagingUI = Messaging.UI.init;
|
||||||
|
|
||||||
// Realtime
|
// Realtime
|
||||||
var whenRealtimeSyncs = common.whenRealtimeSyncs = Realtime.whenRealtimeSyncs;
|
var whenRealtimeSyncs = common.whenRealtimeSyncs = function (realtime, cb) {
|
||||||
|
Realtime.whenRealtimeSyncs(common, realtime, cb);
|
||||||
|
};
|
||||||
|
|
||||||
// Userlist
|
// Userlist
|
||||||
common.createUserList = UserList.create;
|
common.createUserList = UserList.create;
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user