Ability to reconnect after a connection failure
This commit is contained in:
1 parent
5a3da11c40
commit
c168ce2d1c
3 files changed
+25
-3
No files matched your search
@@ -603,6 +603,18 @@ define([
|
||||
Cryptpad.alert(Messages.disconnectAlert);
|
||||
};
|
||||
|
||||
var onConnectionChange = realtimeOptions.onConnectionChange = function (info) {
|
||||
setEditable(info.state);
|
||||
toolbar.failed();
|
||||
if (info.state) {
|
||||
initializing = true;
|
||||
toolbar.reconnecting(info.myId);
|
||||
Cryptpad.findOKButton().click();
|
||||
} else {
|
||||
Cryptpad.alert(Messages.disconnectAlert);
|
||||
}
|
||||
};
|
||||
|
||||
var onLocal = realtimeOptions.onLocal = function () {
|
||||
if (initializing) { return; }
|
||||
|
||||
|
||||
Reference in new issue
Block a user