Remove connection lost popup when websocket connection is lost

This commit is contained in:
yflory
2018-03-07 16:48:49 +01:00
parent 6a7c86aee7
commit f45023ed1f
7 changed files with 17 additions and 10 deletions

View File

@@ -1048,6 +1048,13 @@ define([
toolbar.reconnecting = function (/*userId*/) {
toolbar.connected = false;
if (toolbar.spinner) {
var state = -1;
var interval = window.setInterval(function () {
if (toolbar.connected) { clearInterval(interval); }
var dots = Array(state+1).join('.');
toolbar.spinner.text(Messages.reconnecting + dots);
if (++state > 3) { state = 0; }
}, 500);
toolbar.spinner.text(Messages.reconnecting);
}
};