|
|
@ -2533,8 +2533,6 @@ define([
|
|
|
|
var onCacheReady = function (clientId, cb) {
|
|
|
|
var onCacheReady = function (clientId, cb) {
|
|
|
|
var proxy = store.proxy;
|
|
|
|
var proxy = store.proxy;
|
|
|
|
if (store.manager) { return void cb(); }
|
|
|
|
if (store.manager) { return void cb(); }
|
|
|
|
if (!proxy.settings) { proxy.settings = NEW_USER_SETTINGS; }
|
|
|
|
|
|
|
|
if (!proxy.friends_pending) { proxy.friends_pending = {}; }
|
|
|
|
|
|
|
|
var unpin = function (data, cb) {
|
|
|
|
var unpin = function (data, cb) {
|
|
|
|
if (!store.loggedIn) { return void cb(); }
|
|
|
|
if (!store.loggedIn) { return void cb(); }
|
|
|
|
Store.unpinPads(null, data, cb);
|
|
|
|
Store.unpinPads(null, data, cb);
|
|
|
@ -2579,6 +2577,8 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
nThen(function (waitFor) {
|
|
|
|
nThen(function (waitFor) {
|
|
|
|
if (manager) { return; }
|
|
|
|
if (manager) { return; }
|
|
|
|
|
|
|
|
if (!proxy.settings) { proxy.settings = NEW_USER_SETTINGS; }
|
|
|
|
|
|
|
|
if (!proxy.friends_pending) { proxy.friends_pending = {}; }
|
|
|
|
onCacheReady(clientId, waitFor());
|
|
|
|
onCacheReady(clientId, waitFor());
|
|
|
|
manager = store.manager;
|
|
|
|
manager = store.manager;
|
|
|
|
userObject = store.userObject;
|
|
|
|
userObject = store.userObject;
|
|
|
@ -2767,7 +2767,6 @@ define([
|
|
|
|
|
|
|
|
|
|
|
|
// Check if we can connect
|
|
|
|
// Check if we can connect
|
|
|
|
var to = setTimeout(function () {
|
|
|
|
var to = setTimeout(function () {
|
|
|
|
console.error('TO');
|
|
|
|
|
|
|
|
store.networkTimeout = true;
|
|
|
|
store.networkTimeout = true;
|
|
|
|
broadcast([], "LOADING_DRIVE", {
|
|
|
|
broadcast([], "LOADING_DRIVE", {
|
|
|
|
type: "offline"
|
|
|
|
type: "offline"
|
|
|
|