Fix the webworker app

This commit is contained in:
yflory
2017-12-01 18:29:59 +01:00
parent b14228da18
commit e164edec03
7 changed files with 72 additions and 13 deletions

View File

@@ -815,7 +815,6 @@ define([
store.proxy = rt.proxy;
store.loggedIn = typeof(data.userHash) !== "undefined";
var returned = {};
rt.proxy.on('create', function (info) {
store.realtime = info.realtime;
store.network = info.network;
@@ -858,7 +857,8 @@ define([
Store.init = function (data, callback) {
if (initialized) {
return void callback({
error: 'ALREADY_INIT'
state: 'ALREADY_INIT',
returned: store.returned
});
}
initialized = true;
@@ -873,6 +873,7 @@ define([
if (Object.keys(store.proxy).length === 1) {
Feedback.send("FIRST_APP_USE", true);
}
store.returned = ret;
callback(ret);