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