diff --git a/www/code/inner.js b/www/code/inner.js index 488a084e4..53d852ebd 100644 --- a/www/code/inner.js +++ b/www/code/inner.js @@ -571,6 +571,14 @@ define([ cpNfInner = common.startRealtime(config); metadataMgr = cpNfInner.metadataMgr; + cpNfInner.onInfiniteSpinner(function () { + setEditable(false); + Cryptpad.confirm(Messages.realtime_unrecoverableError, function (yes) { + if (!yes) { return; } + common.gotoURL(); + }); + }); + editor.on('change', onLocal); Cryptpad.onLogout(function () { setEditable(false); }); diff --git a/www/slide/inner.js b/www/slide/inner.js index a4eb9bf72..80fb3e02d 100644 --- a/www/slide/inner.js +++ b/www/slide/inner.js @@ -682,6 +682,14 @@ define([ cpNfInner = common.startRealtime(config); metadataMgr = cpNfInner.metadataMgr; + cpNfInner.onInfiniteSpinner(function () { + setEditable(false); + Cryptpad.confirm(Messages.realtime_unrecoverableError, function (yes) { + if (!yes) { return; } + common.gotoURL(); + }); + }); + editor.on('change', onLocal); Cryptpad.onLogout(function () { setEditable(false); });