don't complain about bad realtime state just because you disconnected

This commit is contained in:
ansuz
2017-08-17 15:07:34 +02:00
parent 3b20dcd435
commit 290763d6c5
2 changed files with 15 additions and 1 deletions

View File

@@ -1849,12 +1849,18 @@ define([
Store.ready(function (err, storeObj) {
store = common.store = env.store = storeObj;
common.addDirectMessageHandler(common);
var proxy = getProxy();
var network = getNetwork();
network.on('disconnect', function () {
Realtime.setConnectionState(false);
});
network.on('reconnect', function () {
Realtime.setConnectionState(true);
});
if (Object.keys(proxy).length === 1) {
feedback("FIRST_APP_USE", true);
}