Fix 'not a function' error

This commit is contained in:
yflory
2017-08-23 11:06:55 +02:00
parent acfaaa7d56
commit ec64ac485d
2 changed files with 5 additions and 3 deletions

View File

@@ -13,7 +13,7 @@ define([
/*
TODO make this not blow up when disconnected or lagging...
*/
common.whenRealtimeSyncs = function (realtime, cb) {
common.whenRealtimeSyncs = function (Cryptpad, realtime, cb) {
realtime.sync();
window.setTimeout(function () {
@@ -28,7 +28,7 @@ define([
if (common.infiniteSpinnerDetected) { return; }
// 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; }
window.location.reload();
});